Skip to content

Commit ddee8ef

Browse files
committed
[Driver][test] Replace legacy -target with --target=
Similar to previous cleanup.
1 parent 9223ccb commit ddee8ef

30 files changed

+406
-406
lines changed

clang/test/Driver/fast-math.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,31 @@
6767
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
6868
//
6969
// Target defaults for -fmath-errno (reusing the above checks).
70-
// RUN: %clang -### -target i686-unknown-linux -c %s 2>&1 \
70+
// RUN: %clang -### --target=i686-unknown-linux -c %s 2>&1 \
7171
// RUN: | FileCheck --check-prefixes=CHECK,ERRNO %s
7272
// RUN: %clang -### -target i686-apple-darwin -c %s 2>&1 \
7373
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
74-
// RUN: %clang -### -target x86_64-unknown-freebsd -c %s 2>&1 \
74+
// RUN: %clang -### --target=x86_64-unknown-freebsd -c %s 2>&1 \
7575
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
76-
// RUN: %clang -### -target x86_64-unknown-netbsd -c %s 2>&1 \
76+
// RUN: %clang -### --target=x86_64-unknown-netbsd -c %s 2>&1 \
7777
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
78-
// RUN: %clang -### -target x86_64-unknown-openbsd -c %s 2>&1 \
78+
// RUN: %clang -### --target=x86_64-unknown-openbsd -c %s 2>&1 \
7979
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
8080
// RUN: %clang -### --target=x86_64-unknown-haiku -c %s 2>&1 \
8181
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
82-
// RUN: %clang -### -target x86_64-unknown-dragonfly -c %s 2>&1 \
82+
// RUN: %clang -### --target=x86_64-unknown-dragonfly -c %s 2>&1 \
8383
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
84-
// RUN: %clang -### -target x86_64-fuchsia -c %s 2>&1 \
84+
// RUN: %clang -### --target=x86_64-fuchsia -c %s 2>&1 \
8585
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
86-
// RUN: %clang -### -target x86_64-linux-android -c %s 2>&1 \
86+
// RUN: %clang -### --target=x86_64-linux-android -c %s 2>&1 \
8787
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
88-
// RUN: %clang -### -target x86_64-linux-musl -c %s 2>&1 \
88+
// RUN: %clang -### --target=x86_64-linux-musl -c %s 2>&1 \
8989
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
9090
// RUN: %clang -### --target=amdgcn-amd-amdhsa -nogpuinc -nogpulib -c %s 2>&1 \
9191
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
92-
// RUN: %clang -### -target amdgcn-amd-amdpal -c %s 2>&1 \
92+
// RUN: %clang -### --target=amdgcn-amd-amdpal -c %s 2>&1 \
9393
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
94-
// RUN: %clang -### -target amdgcn-mesa-mesa3d -c %s 2>&1 \
94+
// RUN: %clang -### --target=amdgcn-mesa-mesa3d -c %s 2>&1 \
9595
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
9696
//
9797
// Check that -ffast-math disables -fmath-errno, and -fno-fast-math merely
@@ -103,9 +103,9 @@
103103
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s
104104
// RUN: %clang -### -ffast-math -fmath-errno -c %s 2>&1 \
105105
// RUN: | FileCheck --check-prefixes=CHECK,ERRNO %s
106-
// RUN: %clang -### -target i686-unknown-linux -fno-fast-math -c %s 2>&1 \
106+
// RUN: %clang -### --target=i686-unknown-linux -fno-fast-math -c %s 2>&1 \
107107
// RUN: | FileCheck --check-prefixes=CHECK,ERRNO %s
108-
// RUN: %clang -### -target i686-unknown-linux -fno-math-errno -fno-fast-math -c %s 2>&1 \
108+
// RUN: %clang -### --target=i686-unknown-linux -fno-math-errno -fno-fast-math -c %s 2>&1 \
109109
// RUN: | FileCheck --check-prefixes=CHECK,ERRNO %s
110110
// RUN: %clang -### -target i686-apple-darwin -fno-fast-math -c %s 2>&1 \
111111
// RUN: | FileCheck --check-prefixes=CHECK,NO-ERRNO %s

clang/test/Driver/fat-archive-unbundle-ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// UNSUPPORTED: target={{.*-windows.*}}, target={{.*}}-macosx{{.*}}, target={{.*-darwin.*}}, target={{.*}}-aix{{.*}}
33

44
// Generate dummy fat object
5-
// RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.host.o
5+
// RUN: %clang -O0 --target=%itanium_abi_triple %s -c -o %t.host.o
66
// RUN: echo 'Content of device file' > %t.tgt.o
77
// RUN: clang-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-%itanium_abi_triple -input=%t.host.o -input=%t.tgt.o -output=%t.fat.obj
88

clang/test/Driver/fatal-warnings.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck %s
2-
// RUN: not %clang %s -c -o %t.o -target i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 %t.log
1+
// RUN: %clang -### %s -c -o tmp.o --target=i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck %s
2+
// RUN: not %clang %s -c -o %t.o --target=i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 %t.log
33
// FileCheck --check-prefix=CHECK-AS %s -input-file %t.log
44

55
// CHECK: "-cc1" {{.*}} "-massembler-fatal-warnings"

clang/test/Driver/fbinutils-version.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
// RUN: %clang -### -c -target x86_64-linux %s -fbinutils-version=none 2>&1 | FileCheck %s --check-prefix=NONE
1+
// RUN: %clang -### -c --target=x86_64-linux %s -fbinutils-version=none 2>&1 | FileCheck %s --check-prefix=NONE
22

33
// NONE: "-fbinutils-version=none"
44

5-
// RUN: %clang -### -c -target aarch64-linux %s -fbinutils-version=2 2>&1 | FileCheck %s --check-prefix=CHECK2
5+
// RUN: %clang -### -c --target=aarch64-linux %s -fbinutils-version=2 2>&1 | FileCheck %s --check-prefix=CHECK2
66

77
// CHECK2: "-fbinutils-version=2"
88

9-
// RUN: %clang -### -c -target aarch64-linux %s -fbinutils-version=2.35 2>&1 | FileCheck %s --check-prefix=CHECK2_35
9+
// RUN: %clang -### -c --target=aarch64-linux %s -fbinutils-version=2.35 2>&1 | FileCheck %s --check-prefix=CHECK2_35
1010

1111
// CHECK2_35: "-fbinutils-version=2.35"
1212

1313
/// Disallow -fbinutils-version=0 because we use $major==0 to indicate the MC
1414
/// default in the backend.
15-
// RUN: not %clang -c -target x86_64-linux %s -fbinutils-version=0 2>&1 | FileCheck %s --check-prefix=ERR0
15+
// RUN: not %clang -c --target=x86_64-linux %s -fbinutils-version=0 2>&1 | FileCheck %s --check-prefix=ERR0
1616

1717
// ERR0: error: invalid argument '0' to -fbinutils-version=
1818

19-
// RUN: not %clang -c -target x86_64-linux %s -fbinutils-version=nan 2>&1 | FileCheck %s --check-prefix=ERR1
19+
// RUN: not %clang -c --target=x86_64-linux %s -fbinutils-version=nan 2>&1 | FileCheck %s --check-prefix=ERR1
2020

2121
// ERR1: error: invalid argument 'nan' to -fbinutils-version=
2222

23-
// RUN: not %clang -c -target x86_64-linux %s -fbinutils-version=2. 2>&1 | FileCheck %s --check-prefix=ERR2
23+
// RUN: not %clang -c --target=x86_64-linux %s -fbinutils-version=2. 2>&1 | FileCheck %s --check-prefix=ERR2
2424

2525
// ERR2: error: invalid argument '2.' to -fbinutils-version=
2626

27-
// RUN: not %clang -c -target x86_64-linux %s -fbinutils-version=3.-14 2>&1 | FileCheck %s --check-prefix=ERR3
27+
// RUN: not %clang -c --target=x86_64-linux %s -fbinutils-version=3.-14 2>&1 | FileCheck %s --check-prefix=ERR3
2828

2929
// ERR3: error: invalid argument '3.-14' to -fbinutils-version=

clang/test/Driver/fdirect-access-external-data.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/// -fno-pic code defaults to -fdirect-access-external-data.
2-
// RUN: %clang -### -c -target x86_64 %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
3-
// RUN: %clang -### -c -target x86_64 %s -fdirect-access-external-data 2>&1 | FileCheck %s --check-prefix=DEFAULT
4-
// RUN: %clang -### -c -target x86_64 %s -fdirect-access-external-data -fno-direct-access-external-data 2>&1 | FileCheck %s --check-prefix=INDIRECT
2+
// RUN: %clang -### -c --target=x86_64 %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
3+
// RUN: %clang -### -c --target=x86_64 %s -fdirect-access-external-data 2>&1 | FileCheck %s --check-prefix=DEFAULT
4+
// RUN: %clang -### -c --target=x86_64 %s -fdirect-access-external-data -fno-direct-access-external-data 2>&1 | FileCheck %s --check-prefix=INDIRECT
55

66
/// -fpie/-fpic code defaults to -fdirect-access-external-data.
7-
// RUN: %clang -### -c -target x86_64 %s -fpie 2>&1 | FileCheck %s --check-prefix=DEFAULT
8-
// RUN: %clang -### -c -target x86_64 %s -fpie -fno-direct-access-external-data -fdirect-access-external-data 2>&1 | FileCheck %s --check-prefix=DIRECT
9-
// RUN: %clang -### -c -target aarch64 %s -fpic 2>&1 | FileCheck %s --check-prefix=DEFAULT
10-
// RUN: %clang -### -c -target aarch64 %s -fpic -fdirect-access-external-data 2>&1 | FileCheck %s --check-prefix=DIRECT
7+
// RUN: %clang -### -c --target=x86_64 %s -fpie 2>&1 | FileCheck %s --check-prefix=DEFAULT
8+
// RUN: %clang -### -c --target=x86_64 %s -fpie -fno-direct-access-external-data -fdirect-access-external-data 2>&1 | FileCheck %s --check-prefix=DIRECT
9+
// RUN: %clang -### -c --target=aarch64 %s -fpic 2>&1 | FileCheck %s --check-prefix=DEFAULT
10+
// RUN: %clang -### -c --target=aarch64 %s -fpic -fdirect-access-external-data 2>&1 | FileCheck %s --check-prefix=DIRECT
1111

1212
/// loongarch* targets default to -fno-direct-access-external-data even for -fno-pic.
1313
// RUN: %clang -### -c --target=loongarch64 -fno-pic %s 2>&1 | FileCheck %s --check-prefix=INDIRECT

clang/test/Driver/fembed-bitcode.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// RUN: %clang -target x86_64-apple-macosx -fembed-bitcode=all -c %s -o /dev/null -### 2>&1 \
2-
// RUN: | FileCheck -check-prefix CHECK-X64 %s
2+
// RUN: | FileCheck --check-prefix=CHECK-X64 %s
33

44
// CHECK-X64: "-cc1"
55

66
// CHECK-X64: "-cc1"
77
// CHECK-X64-NOT: "-fdebug-compilation-dir
88

99
// RUN: %clang -target armv7-apple-ios -fembed-bitcode=all -c %s -o /dev/null -### 2>&1 \
10-
// RUN: | FileCheck -check-prefix CHECK-ARM %s
10+
// RUN: | FileCheck --check-prefix=CHECK-ARM %s
1111

1212
// CHECK-ARM: "-cc1"
1313

@@ -17,7 +17,7 @@
1717
// CHECK-ARM-NOT: "-fdebug-compilation-dir
1818

1919
// RUN: %clang -target arm64-apple-ios -fembed-bitcode=all -c %s -o /dev/null -### 2>&1 \
20-
// RUN: | FileCheck -check-prefix CHECK-AARCH64 %s
20+
// RUN: | FileCheck --check-prefix=CHECK-AARCH64 %s
2121

2222
// CHECK-AARCH64: "-cc1"
2323

@@ -26,12 +26,12 @@
2626
// CHECK-AARCH64: "darwinpcs"
2727
// CHECK-AARCH64-NOT: "-fdebug-compilation-dir
2828

29-
// RUN: %clang -target hexagon-unknown-elf -ffixed-r19 -fembed-bitcode=all -c %s -### 2>&1 \
29+
// RUN: %clang --target=hexagon-unknown-elf -ffixed-r19 -fembed-bitcode=all -c %s -### 2>&1 \
3030
// RUN: | FileCheck --check-prefix=CHECK-HEXAGON %s
3131
// CHECK-HEXAGON: "-target-feature"
3232
// CHECK-HEXAGON: "+reserved-r19"
3333
//
34-
// RUN: %clang -target wasm32-unknown-unknown -fembed-bitcode=all -pthread -c %s -o /dev/null -### 2>&1 \
34+
// RUN: %clang --target=wasm32-unknown-unknown -fembed-bitcode=all -pthread -c %s -o /dev/null -### 2>&1 \
3535
// RUN: | FileCheck --check-prefix=CHECK-WASM %s
3636

3737
// CHECK-WASM: "-cc1"

clang/test/Driver/fexcess-precision.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
// Note: %s must be preceded by --, otherwise it may be interpreted as a
22
// command-line option, e.g. on Mac where %s is commonly under /Users.
33

4-
// RUN: %clang -### -target i386 -fexcess-precision=fast -c %s 2>&1 \
4+
// RUN: %clang -### --target=i386 -fexcess-precision=fast -c %s 2>&1 \
55
// RUN: | FileCheck --check-prefix=CHECK-FAST %s
6-
// RUN: %clang_cl -### -target i386 -fexcess-precision=fast -c -- %s 2>&1 \
6+
// RUN: %clang_cl -### --target=i386 -fexcess-precision=fast -c -- %s 2>&1 \
77
// RUN: | FileCheck --check-prefix=CHECK-FAST %s
88

9-
// RUN: %clang -### -target i386 -fexcess-precision=standard -c %s 2>&1 \
9+
// RUN: %clang -### --target=i386 -fexcess-precision=standard -c %s 2>&1 \
1010
// RUN: | FileCheck --check-prefix=CHECK-STD %s
11-
// RUN: %clang_cl -### -target i386 -fexcess-precision=standard -c -- %s 2>&1 \
11+
// RUN: %clang_cl -### --target=i386 -fexcess-precision=standard -c -- %s 2>&1 \
1212
// RUN: | FileCheck --check-prefix=CHECK-STD %s
1313

14-
// RUN: %clang -### -target i386 -fexcess-precision=16 -c %s 2>&1 \
14+
// RUN: %clang -### --target=i386 -fexcess-precision=16 -c %s 2>&1 \
1515
// RUN: | FileCheck --check-prefix=CHECK-NONE %s
16-
// RUN: %clang_cl -### -target i386 -fexcess-precision=16 -c -- %s 2>&1 \
16+
// RUN: %clang_cl -### --target=i386 -fexcess-precision=16 -c -- %s 2>&1 \
1717
// RUN: | FileCheck --check-prefix=CHECK-NONE %s
1818

1919
// RUN: not %clang -### --target=i386 -fexcess-precision=none -c %s 2>&1 \
2020
// RUN: | FileCheck --check-prefix=CHECK-ERR-NONE %s
2121
// RUN: not %clang_cl -### --target=i386 -fexcess-precision=none -c -- %s 2>&1 \
2222
// RUN: | FileCheck --check-prefix=CHECK-ERR-NONE %s
2323

24-
// RUN: %clang -### -target x86_64 -fexcess-precision=fast -c %s 2>&1 \
24+
// RUN: %clang -### --target=x86_64 -fexcess-precision=fast -c %s 2>&1 \
2525
// RUN: | FileCheck --check-prefix=CHECK-FAST %s
26-
// RUN: %clang_cl -### -target x86_64 -fexcess-precision=fast -c -- %s 2>&1 \
26+
// RUN: %clang_cl -### --target=x86_64 -fexcess-precision=fast -c -- %s 2>&1 \
2727
// RUN: | FileCheck --check-prefix=CHECK-FAST %s
2828

29-
// RUN: %clang -### -target x86_64 -fexcess-precision=standard -c %s 2>&1 \
29+
// RUN: %clang -### --target=x86_64 -fexcess-precision=standard -c %s 2>&1 \
3030
// RUN: | FileCheck --check-prefix=CHECK-STD %s
31-
// RUN: %clang_cl -### -target x86_64 -fexcess-precision=standard -c \
31+
// RUN: %clang_cl -### --target=x86_64 -fexcess-precision=standard -c \
3232
// RUN: -- %s 2>&1 | FileCheck --check-prefix=CHECK-STD %s
3333

34-
// RUN: %clang -### -target x86_64 -fexcess-precision=16 -c %s 2>&1 \
34+
// RUN: %clang -### --target=x86_64 -fexcess-precision=16 -c %s 2>&1 \
3535
// RUN: | FileCheck --check-prefix=CHECK-NONE %s
36-
// RUN: %clang_cl -### -target x86_64 -fexcess-precision=16 -c -- %s 2>&1 \
36+
// RUN: %clang_cl -### --target=x86_64 -fexcess-precision=16 -c -- %s 2>&1 \
3737
// RUN: | FileCheck --check-prefix=CHECK-NONE %s
3838

3939
// RUN: not %clang -### --target=x86_64 -fexcess-precision=none -c %s 2>&1 \
4040
// RUN: | FileCheck --check-prefixes=CHECK-ERR-NONE %s
4141
// RUN: not %clang_cl -### --target=x86_64 -fexcess-precision=none -c -- %s 2>&1 \
4242
// RUN: | FileCheck --check-prefixes=CHECK-ERR-NONE %s
4343

44-
// RUN: %clang -### -target aarch64 -fexcess-precision=fast -c %s 2>&1 \
44+
// RUN: %clang -### --target=aarch64 -fexcess-precision=fast -c %s 2>&1 \
4545
// RUN: | FileCheck --check-prefix=CHECK %s
46-
// RUN: %clang_cl -### -target aarch64 -fexcess-precision=fast -c -- %s 2>&1 \
46+
// RUN: %clang_cl -### --target=aarch64 -fexcess-precision=fast -c -- %s 2>&1 \
4747
// RUN: | FileCheck --check-prefix=CHECK %s
4848

49-
// RUN: %clang -### -target aarch64 -fexcess-precision=standard -c %s 2>&1 \
49+
// RUN: %clang -### --target=aarch64 -fexcess-precision=standard -c %s 2>&1 \
5050
// RUN: | FileCheck --check-prefix=CHECK %s
51-
// RUN: %clang_cl -### -target aarch64 -fexcess-precision=standard -c \
51+
// RUN: %clang_cl -### --target=aarch64 -fexcess-precision=standard -c \
5252
// RUN: -- %s 2>&1 | FileCheck --check-prefix=CHECK %s
5353

5454
// RUN: not %clang -### --target=aarch64 -fexcess-precision=16 -c %s 2>&1 \

clang/test/Driver/fextend-args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: | FileCheck -check-prefix=CHECK-64 %s
66

77
// Unsupported target
8-
// RUN: not %clang -target aarch64-unknown-windows-msvc -fextend-arguments=32 %s 2>&1 \
8+
// RUN: not %clang --target=aarch64-unknown-windows-msvc -fextend-arguments=32 %s 2>&1 \
99
// RUN: | FileCheck -check-prefix=UNSUPPORTED-TARGET %s
1010

1111
// Invalid option value
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang -target arm -c -### %s -fforce-dwarf-frame 2>&1 | FileCheck --check-prefix=CHECK-ALWAYS %s
2-
// RUN: %clang -target arm -c -### %s -fno-force-dwarf-frame 2>&1 | FileCheck --check-prefix=CHECK-NO-ALWAYS %s
3-
// RUN: %clang -target arm -c -### %s 2>&1 | FileCheck --check-prefix=CHECK-NO-ALWAYS %s
1+
// RUN: %clang --target=arm -c -### %s -fforce-dwarf-frame 2>&1 | FileCheck --check-prefix=CHECK-ALWAYS %s
2+
// RUN: %clang --target=arm -c -### %s -fno-force-dwarf-frame 2>&1 | FileCheck --check-prefix=CHECK-NO-ALWAYS %s
3+
// RUN: %clang --target=arm -c -### %s 2>&1 | FileCheck --check-prefix=CHECK-NO-ALWAYS %s
44

55
// CHECK-ALWAYS: -fforce-dwarf-frame
66
// CHECK-NO-ALWAYS-NOT: -fforce-dwarf-frame

clang/test/Driver/fgnuc-version.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
// Verify -fgnuc-version parsing
33
//
44

5-
// RUN: %clang -c %s -target i686-linux -### 2>&1 | FileCheck %s -check-prefix GNUC-DEFAULT
5+
// RUN: %clang -c %s --target=i686-linux -### 2>&1 | FileCheck %s --check-prefix=GNUC-DEFAULT
66
// GNUC-DEFAULT: "-fgnuc-version=4.2.1"
77

8-
// RUN: %clang -c %s -target i686-linux -fgnuc-version=100.99.99 -### 2>&1 | FileCheck %s -check-prefix GNUC-OVERRIDE
8+
// RUN: %clang -c %s --target=i686-linux -fgnuc-version=100.99.99 -### 2>&1 | FileCheck %s --check-prefix=GNUC-OVERRIDE
99
// GNUC-OVERRIDE: "-fgnuc-version=100.99.99"
1010

11-
// RUN: %clang -c %s -target i686-linux -fgnuc-version=0 -### 2>&1 | FileCheck %s -check-prefix GNUC-DISABLE
12-
// RUN: %clang -c %s -target i686-linux -fgnuc-version= -### 2>&1 | FileCheck %s -check-prefix GNUC-DISABLE
11+
// RUN: %clang -c %s --target=i686-linux -fgnuc-version=0 -### 2>&1 | FileCheck %s --check-prefix=GNUC-DISABLE
12+
// RUN: %clang -c %s --target=i686-linux -fgnuc-version= -### 2>&1 | FileCheck %s --check-prefix=GNUC-DISABLE
1313
// GNUC-DISABLE-NOT: "-fgnuc-version=
1414

15-
// RUN: not %clang -c %s -target i686-linux -fgnuc-version=100.100.10 2>&1 | FileCheck %s -check-prefix GNUC-INVALID
16-
// RUN: not %clang -c %s -target i686-linux -fgnuc-version=100.10.100 2>&1 | FileCheck %s -check-prefix GNUC-INVALID
17-
// RUN: not %clang -c %s -target i686-linux -fgnuc-version=-1.0.0 2>&1 | FileCheck %s -check-prefix GNUC-INVALID
15+
// RUN: not %clang -c %s --target=i686-linux -fgnuc-version=100.100.10 2>&1 | FileCheck %s --check-prefix=GNUC-INVALID
16+
// RUN: not %clang -c %s --target=i686-linux -fgnuc-version=100.10.100 2>&1 | FileCheck %s --check-prefix=GNUC-INVALID
17+
// RUN: not %clang -c %s --target=i686-linux -fgnuc-version=-1.0.0 2>&1 | FileCheck %s --check-prefix=GNUC-INVALID
1818
// GNUC-INVALID: error: invalid value {{.*}} in '-fgnuc-version={{.*}}'
1919

20-
// RUN: %clang -fgnuc-version=100.99.99 %s -dM -E -o - | FileCheck %s -check-prefix GNUC-LARGE
20+
// RUN: %clang -fgnuc-version=100.99.99 %s -dM -E -o - | FileCheck %s --check-prefix=GNUC-LARGE
2121
// GNUC-LARGE: #define __GNUC_MINOR__ 99
2222
// GNUC-LARGE: #define __GNUC_PATCHLEVEL__ 99
2323
// GNUC-LARGE: #define __GNUC__ 100
2424

25-
// RUN: %clang -fgnuc-version=100.99.99 -x c++ %s -dM -E -o - | FileCheck %s -check-prefix GXX-LARGE
25+
// RUN: %clang -fgnuc-version=100.99.99 -x c++ %s -dM -E -o - | FileCheck %s --check-prefix=GXX-LARGE
2626
// GXX-LARGE: #define __GNUG__ 100

clang/test/Driver/flags.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
// RUN: %clang -target armv7-apple-darwin10 -### -S -mno-implicit-float -mimplicit-float %s 2>&1 | FileCheck -check-prefix=TEST8 %s
2626
// TEST8-NOT: "-no-implicit-float"
2727

28-
// RUN: %clang -target x86_64-linux-gnu -### -c -fclang-abi-compat=3.2 %s 2>&1 | FileCheck -check-prefix=TEST9 %s
28+
// RUN: %clang --target=x86_64-linux-gnu -### -c -fclang-abi-compat=3.2 %s 2>&1 | FileCheck -check-prefix=TEST9 %s
2929
// TEST9: "-fclang-abi-compat=3.2"
3030
//
31-
// RUN: %clang -target riscv32 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST10 %s
31+
// RUN: %clang --target=riscv32 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST10 %s
3232
// TEST10: "-no-implicit-float"
3333
//
34-
// RUN: %clang -target riscv64 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST11 %s
34+
// RUN: %clang --target=riscv64 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST11 %s
3535
// TEST11: "-no-implicit-float"

clang/test/Driver/flang/msvc-link.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: %clang --driver-mode=flang -target x86_64-pc-windows-msvc -### %s -Ltest 2>&1 | FileCheck %s
1+
! RUN: %clang --driver-mode=flang --target=x86_64-pc-windows-msvc -### %s -Ltest 2>&1 | FileCheck %s
22
!
33
! Test that user provided paths come before the Flang runtimes
44
! CHECK: "-libpath:test"

clang/test/Driver/fmemprof.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
// RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile %s -### 2>&1 | FileCheck %s
2-
// RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile=foo %s -### 2>&1 | FileCheck %s --check-prefix=DIR
3-
// RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile -fno-memory-profile %s -### 2>&1 | FileCheck %s --check-prefix=OFF
4-
// RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile=foo -fno-memory-profile %s -### 2>&1 | FileCheck %s --check-prefix=OFF
1+
// RUN: %clangxx --target=x86_64-linux-gnu -fmemory-profile %s -### 2>&1 | FileCheck %s
2+
// RUN: %clangxx --target=x86_64-linux-gnu -fmemory-profile=foo %s -### 2>&1 | FileCheck %s --check-prefix=DIR
3+
// RUN: %clangxx --target=x86_64-linux-gnu -fmemory-profile -fno-memory-profile %s -### 2>&1 | FileCheck %s --check-prefix=OFF
4+
// RUN: %clangxx --target=x86_64-linux-gnu -fmemory-profile=foo -fno-memory-profile %s -### 2>&1 | FileCheck %s --check-prefix=OFF
55
// CHECK: "-cc1" {{.*}} "-fmemory-profile"
66
// CHECK: ld{{.*}}libclang_rt.memprof{{.*}}libclang_rt.memprof_cxx
77
// DIR: "-cc1" {{.*}} "-fmemory-profile=foo"
88
// DIR: ld{{.*}}libclang_rt.memprof{{.*}}libclang_rt.memprof_cxx
99
// OFF-NOT: "-fmemory-profile"
1010
// OFF-NOT: libclang_rt.memprof
1111

12-
// RUN: %clangxx -target x86_64-linux-gnu -fmemory-profile-use=foo %s -### 2>&1 | FileCheck %s --check-prefix=USE
12+
// RUN: %clangxx --target=x86_64-linux-gnu -fmemory-profile-use=foo %s -### 2>&1 | FileCheck %s --check-prefix=USE
1313
// USE: "-cc1" {{.*}} "-fmemory-profile-use=foo"
1414

1515
// RUN: not %clangxx --target=x86_64-linux-gnu -fmemory-profile -fmemory-profile-use=foo %s -### 2>&1 | FileCheck %s --check-prefix=CONFLICTWITHMEMPROFINSTR

0 commit comments

Comments
 (0)