Skip to content

Commit fe7f5f9

Browse files
authored
[NFC][Intrumentation] Don't brake long RUN: lines (llvm#112281)
I find multiline 'RUN:' statements hard to read. ` *\\\n; RUN: *` -> ` ` for ./llvm/test/Instrumentation/
1 parent 7d7fb7c commit fe7f5f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+112
-265
lines changed

llvm/test/Instrumentation/AddressSanitizer/asan-detect-invalid-pointer-pair.ll

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
; RUN: opt < %s -passes=asan -asan-detect-invalid-pointer-cmp -S \
2-
; RUN: | FileCheck %s --check-prefixes=CMP,NOSUB,ALL
3-
; RUN: opt < %s -passes=asan -asan-detect-invalid-pointer-sub -S \
4-
; RUN: | FileCheck %s --check-prefixes=SUB,NOCMP,ALL
5-
; RUN: opt < %s -passes=asan -asan-detect-invalid-pointer-pair -S \
6-
; RUN: | FileCheck %s --check-prefixes=CMP,SUB,ALL
1+
; RUN: opt < %s -passes=asan -asan-detect-invalid-pointer-cmp -S | FileCheck %s --check-prefixes=CMP,NOSUB,ALL
2+
; RUN: opt < %s -passes=asan -asan-detect-invalid-pointer-sub -S | FileCheck %s --check-prefixes=SUB,NOCMP,ALL
3+
; RUN: opt < %s -passes=asan -asan-detect-invalid-pointer-pair -S | FileCheck %s --check-prefixes=CMP,SUB,ALL
74
; Support instrumentation of invalid pointer pair detection.
85

96
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

llvm/test/Instrumentation/AddressSanitizer/asan-funclet.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
22

33
; Test appropriate tagging of funclet for function calls generated by asan.
4-
; RUN: opt -S -passes=asan,win-eh-prepare -asan-use-stack-safety=0 -asan-max-inline-poisoning-size=0 \
5-
; RUN: -asan-detect-invalid-pointer-cmp -asan-detect-invalid-pointer-sub -asan-use-after-scope < %s | FileCheck %s --check-prefixes=CHECK,CHECK-INLINE
6-
; RUN: opt -S -passes=asan,win-eh-prepare -asan-use-stack-safety=0 -asan-max-inline-poisoning-size=0 -asan-instrumentation-with-call-threshold=0 \
7-
; RUN: -asan-detect-invalid-pointer-cmp -asan-detect-invalid-pointer-sub -asan-use-after-scope < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OUTLINE
4+
; RUN: opt -S -passes=asan,win-eh-prepare -asan-use-stack-safety=0 -asan-max-inline-poisoning-size=0 -asan-detect-invalid-pointer-cmp -asan-detect-invalid-pointer-sub -asan-use-after-scope < %s | FileCheck %s --check-prefixes=CHECK,CHECK-INLINE
5+
; RUN: opt -S -passes=asan,win-eh-prepare -asan-use-stack-safety=0 -asan-max-inline-poisoning-size=0 -asan-instrumentation-with-call-threshold=0 -asan-detect-invalid-pointer-cmp -asan-detect-invalid-pointer-sub -asan-use-after-scope < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OUTLINE
86

97
; REQUIRES: x86-registered-target
108

llvm/test/Instrumentation/AddressSanitizer/asan-masked-load-store.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -S \
3-
; RUN: | FileCheck %s
4-
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-instrument-reads=0 -asan-instrument-writes=0 -S \
5-
; RUN: | FileCheck %s -check-prefix=DISABLED
2+
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -S | FileCheck %s
3+
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-instrument-reads=0 -asan-instrument-writes=0 -S | FileCheck %s -check-prefix=DISABLED
64

75
; Support ASan instrumentation for constant-mask llvm.masked.{load,store}
86

llvm/test/Instrumentation/AddressSanitizer/asan-optimize-callbacks.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 \
2-
; RUN: -asan-optimize-callbacks -S | FileCheck %s --check-prefixes=LOAD,STORE
3-
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 \
4-
; RUN: -asan-optimize-callbacks --asan-kernel -S | \
5-
; RUN: FileCheck %s --check-prefixes=LOAD-KERNEL,STORE-KERNEL
1+
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-optimize-callbacks -S | FileCheck %s --check-prefixes=LOAD,STORE
2+
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-optimize-callbacks --asan-kernel -S | FileCheck %s --check-prefixes=LOAD-KERNEL,STORE-KERNEL
63

74
target triple = "x86_64-unknown-linux-gnu"
85

llvm/test/Instrumentation/AddressSanitizer/asan-vp-load-store.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -S \
3-
; RUN: | FileCheck %s
4-
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-instrument-reads=0 -asan-instrument-writes=0 -S \
5-
; RUN: | FileCheck %s -check-prefix=DISABLED
2+
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -S | FileCheck %s
3+
; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-instrument-reads=0 -asan-instrument-writes=0 -S | FileCheck %s -check-prefix=DISABLED
64

75
; Support ASan instrumentation for constant-mask llvm.vp.{load,store}
86

llvm/test/Instrumentation/AddressSanitizer/freebsd.ll

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
; RUN: opt < %s -passes=asan -S \
2-
; RUN: -mtriple=i386-unknown-freebsd \
3-
; RUN: -data-layout="e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128" | \
4-
; RUN: FileCheck --check-prefix=CHECK-32 %s
5-
6-
; RUN: opt < %s -passes=asan -S \
7-
; RUN: -mtriple=x86_64-unknown-freebsd \
8-
; RUN: -data-layout="e-m:e-i64:64-f80:128-n8:16:32:64-S128" | \
9-
; RUN: FileCheck --check-prefix=CHECK-64 %s
10-
11-
; RUN: opt < %s -passes=asan -S \
12-
; RUN: -mtriple=aarch64-unknown-freebsd \
13-
; RUN: -data-layout="e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | \
14-
; RUN: FileCheck --check-prefix=CHECK-AARCH64 %s
15-
16-
; RUN: opt < %s -passes=asan -S \
17-
; RUN: -mtriple=mips64-unknown-freebsd \
18-
; RUN: -data-layout="E-m:e-i64:64-n32:64-S128" | \
19-
; RUN: FileCheck --check-prefix=CHECK-MIPS64 %s
1+
; RUN: opt < %s -passes=asan -S -mtriple=i386-unknown-freebsd -data-layout="e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128" | FileCheck --check-prefix=CHECK-32 %s
2+
3+
; RUN: opt < %s -passes=asan -S -mtriple=x86_64-unknown-freebsd -data-layout="e-m:e-i64:64-f80:128-n8:16:32:64-S128" | FileCheck --check-prefix=CHECK-64 %s
4+
5+
; RUN: opt < %s -passes=asan -S -mtriple=aarch64-unknown-freebsd -data-layout="e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | FileCheck --check-prefix=CHECK-AARCH64 %s
6+
7+
; RUN: opt < %s -passes=asan -S -mtriple=mips64-unknown-freebsd -data-layout="E-m:e-i64:64-n32:64-S128" | FileCheck --check-prefix=CHECK-MIPS64 %s
208

219
define i32 @read_4_bytes(ptr %a) sanitize_address {
2210
entry:

llvm/test/Instrumentation/AddressSanitizer/no-global-ctors.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
; Check Default behaviour still emits ctors
2-
; RUN: opt < %s -passes=asan -S | \
3-
; RUN: FileCheck -check-prefix=CHECK-DEFAULT %s
2+
; RUN: opt < %s -passes=asan -S | FileCheck -check-prefix=CHECK-DEFAULT %s
43
; CHECK-DEFAULT: llvm.global_ctor{{.+}}asan.module_ctor
54
; CHECK-DEFAULT: define internal void @asan.module_ctor
65

76
; Check with ctor emission disabled
8-
; RUN: opt < %s -passes=asan \
9-
; RUN: -asan-constructor-kind=none -S | \
10-
; RUN: FileCheck %s
7+
; RUN: opt < %s -passes=asan -asan-constructor-kind=none -S | FileCheck %s
118
; CHECK-NOT: llvm.global_ctor{{.+}}asan.module_ctor
129
; CHECK-NOT: define internal void @asan.module_ctor
1310

llvm/test/Instrumentation/AddressSanitizer/no_global_dtors.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
; Check Default behaviour still emits dtors
2-
; RUN: opt < %s -passes=asan -S | \
3-
; RUN: FileCheck -check-prefix=CHECK-DEFAULT %s
2+
; RUN: opt < %s -passes=asan -S | FileCheck -check-prefix=CHECK-DEFAULT %s
43
; CHECK-DEFAULT: llvm.global_dtor{{.+}}asan.module_dtor
54
; CHECK-DEFAULT: define internal void @asan.module_dtor
65

76
; Check with dtor emission disabled
8-
; RUN: opt < %s -passes=asan \
9-
; RUN: -asan-destructor-kind=none -S | \
10-
; RUN: FileCheck %s
7+
; RUN: opt < %s -passes=asan -asan-destructor-kind=none -S | FileCheck %s
118
; CHECK-NOT: llvm.global_dtor{{.+}}asan.module_dtor
129
; CHECK-NOT: define internal void @asan.module_dtor
1310

llvm/test/Instrumentation/AddressSanitizer/stack_dynamic_alloca.ll

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-use-stack-safety=0 \
2-
; RUN: -asan-use-after-return=runtime -S | FileCheck %s \
3-
; RUN: --check-prefixes=CHECK,CHECK-RUNTIME
4-
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-mapping-scale=5 -asan-use-stack-safety=0 \
5-
; RUN: -asan-use-after-return=runtime -S | FileCheck %s \
6-
; RUN: --check-prefixes=CHECK,CHECK-RUNTIME
7-
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-use-stack-safety=0 \
8-
; RUN: -asan-use-after-return=always -S | FileCheck %s \
9-
; RUN: --check-prefixes=CHECK,CHECK-ALWAYS \
10-
; RUN: --implicit-check-not=__asan_option_detect_stack_use_after_return
11-
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-use-stack-safety=0 \
12-
; RUN: -asan-use-after-return=always -S | FileCheck %s \
13-
; RUN: --check-prefixes=CHECK,CHECK-ALWAYS \
14-
; RUN: --implicit-check-not=__asan_option_detect_stack_use_after_return
1+
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-use-stack-safety=0 -asan-use-after-return=runtime -S | FileCheck %s --check-prefixes=CHECK,CHECK-RUNTIME
2+
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-mapping-scale=5 -asan-use-stack-safety=0 -asan-use-after-return=runtime -S | FileCheck %s --check-prefixes=CHECK,CHECK-RUNTIME
3+
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-use-stack-safety=0 -asan-use-after-return=always -S | FileCheck %s --check-prefixes=CHECK,CHECK-ALWAYS --implicit-check-not=__asan_option_detect_stack_use_after_return
4+
; RUN: opt < %s -passes=asan -asan-stack-dynamic-alloca -asan-use-stack-safety=0 -asan-use-after-return=always -S | FileCheck %s --check-prefixes=CHECK,CHECK-ALWAYS --implicit-check-not=__asan_option_detect_stack_use_after_return
155
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
166
target triple = "x86_64-unknown-linux-gnu"
177

llvm/test/Instrumentation/AddressSanitizer/stack_layout.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
; Test the ASan's stack layout.
22
; More tests in tests/Transforms/Utils/ASanStackFrameLayoutTest.cpp
3-
; RUN: opt < %s -passes=asan -asan-use-stack-safety=0 -asan-stack-dynamic-alloca=0 -asan-use-after-scope -S \
4-
; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-STATIC
5-
; RUN: opt < %s -passes=asan -asan-use-stack-safety=0 -asan-stack-dynamic-alloca=1 -asan-use-after-scope -S \
6-
; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-DYNAMIC
3+
; RUN: opt < %s -passes=asan -asan-use-stack-safety=0 -asan-stack-dynamic-alloca=0 -asan-use-after-scope -S | FileCheck %s --check-prefixes=CHECK,CHECK-STATIC
4+
; RUN: opt < %s -passes=asan -asan-use-stack-safety=0 -asan-stack-dynamic-alloca=1 -asan-use-after-scope -S | FileCheck %s --check-prefixes=CHECK,CHECK-DYNAMIC
75

86
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
97
target triple = "x86_64-unknown-linux-gnu"

0 commit comments

Comments
 (0)