Skip to content

Commit 9806799

Browse files
committed
[Driver][test] Remove clang{{.*}} when testing -cc1 command lines
The majority of tests omit testing "clang" for -cc1 command lines. In addition, some distributions symlink %clang to an executable with a content hash based filename so clang{{.*}} check won't work. With this change, we can remove many -no-canonical-prefixes whose purpose was to make the tests pass on such distributions.
1 parent 7aaad7b commit 9806799

27 files changed

+419
-419
lines changed

clang/test/Driver/amdgcn-toolchain-pic.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// RUN: %clang -### --target=amdgcn-amd-amdpal -mcpu=gfx803 %s 2>&1 | FileCheck %s
55
// RUN: %clang -### --target=amdgcn-amd-mesa3d -mcpu=gfx803 %s 2>&1 | FileCheck %s
66

7-
// CHECK: clang{{.*}} "-mrelocation-model" "pic" "-pic-level" "1"
7+
// CHECK: "-cc1"{{.*}} "-mrelocation-model" "pic" "-pic-level" "1"

clang/test/Driver/amdgpu-openmp-system-arch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fno-openmp-new-driver -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib --amdgpu-arch-tool=%t/amdgpu_arch_gfx906 %s 2>&1 \
1414
// RUN: | FileCheck %s
15-
// CHECK: clang{{.*}}"-cc1"{{.*}}"-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "[[GFX:gfx906]]"
15+
// CHECK: "-cc1"{{.*}}"-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "[[GFX:gfx906]]"
1616
// CHECK: llvm-link{{.*}}"-o" "{{.*}}amdgpu-openmp-system-arch-{{.*}}-[[GFX]]-linked-{{.*}}.bc"
1717
// CHECK: llc{{.*}}amdgpu-openmp-system-arch-{{.*}}-[[GFX]]-linked-{{.*}}.bc" "-mtriple=amdgcn-amd-amdhsa" "-mcpu=[[GFX]]" "-filetype=obj" "-o"{{.*}}amdgpu-openmp-system-arch-{{.*}}-[[GFX]]-{{.*}}.o"
1818

1919
// case when amdgpu_arch returns multiple gpus but of same arch
2020
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fno-openmp-new-driver -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib --amdgpu-arch-tool=%t/amdgpu_arch_gfx908_gfx908 %s 2>&1 \
2121
// RUN: | FileCheck %s --check-prefix=CHECK-MULTIPLE
22-
// CHECK-MULTIPLE: clang{{.*}}"-cc1"{{.*}}"-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "[[GFX:gfx908]]"
22+
// CHECK-MULTIPLE: "-cc1"{{.*}}"-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "[[GFX:gfx908]]"
2323
// CHECK-MULTIPLE: llvm-link{{.*}}"-o" "{{.*}}amdgpu-openmp-system-arch-{{.*}}-[[GFX]]-linked-{{.*}}.bc"
2424
// CHECK-MULTIPLE: llc{{.*}}amdgpu-openmp-system-arch-{{.*}}-[[GFX]]-linked-{{.*}}.bc" "-mtriple=amdgcn-amd-amdhsa" "-mcpu=[[GFX]]" "-filetype=obj" "-o"{{.*}}amdgpu-openmp-system-arch-{{.*}}-[[GFX]]-{{.*}}.o"
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O0 %s 2>&1 | FileCheck -check-prefix=CHECK_O0 %s
2-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O1 %s 2>&1 | FileCheck -check-prefix=CHECK_O1 %s
3-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O2 %s 2>&1 | FileCheck -check-prefix=CHECK_O2 %s
4-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O3 %s 2>&1 | FileCheck -check-prefix=CHECK_O3 %s
5-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O4 %s 2>&1 | FileCheck -check-prefix=CHECK_O4 %s
6-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O5 %s 2>&1 | FileCheck -check-prefix=CHECK_O5 %s
7-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -Og %s 2>&1 | FileCheck -check-prefix=CHECK_Og %s
8-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -Ofast %s 2>&1 | FileCheck -check-prefix=CHECK_Ofast %s
9-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji %s 2>&1 | FileCheck -check-prefix=CHECK_O_DEFAULT %s
1+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O0 %s 2>&1 | FileCheck -check-prefix=CHECK_O0 %s
2+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O1 %s 2>&1 | FileCheck -check-prefix=CHECK_O1 %s
3+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O2 %s 2>&1 | FileCheck -check-prefix=CHECK_O2 %s
4+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O3 %s 2>&1 | FileCheck -check-prefix=CHECK_O3 %s
5+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O4 %s 2>&1 | FileCheck -check-prefix=CHECK_O4 %s
6+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -O5 %s 2>&1 | FileCheck -check-prefix=CHECK_O5 %s
7+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -Og %s 2>&1 | FileCheck -check-prefix=CHECK_Og %s
8+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -Ofast %s 2>&1 | FileCheck -check-prefix=CHECK_Ofast %s
9+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji %s 2>&1 | FileCheck -check-prefix=CHECK_O_DEFAULT %s
1010

1111
// Check default include file is not included for preprocessor output.
1212

13-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji %s 2>&1 | FileCheck -check-prefix=CHK-INC %s
14-
// RUN: %clang -### -target amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -save-temps %s 2>&1 | FileCheck -check-prefix=CHK-INC %s
13+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji %s 2>&1 | FileCheck -check-prefix=CHK-INC %s
14+
// RUN: %clang -### --target=amdgcn-amd-amdhsa-opencl -x cl -c -emit-llvm -mcpu=fiji -save-temps %s 2>&1 | FileCheck -check-prefix=CHK-INC %s
1515

16-
// CHECK_O0: clang{{.*}} "-O0"
17-
// CHECK_O1: clang{{.*}} "-O1"
18-
// CHECK_O2: clang{{.*}} "-O2"
19-
// CHECK_O3: clang{{.*}} "-O3"
20-
// CHECK_O4: clang{{.*}} "-O3"
21-
// CHECK_O5: clang{{.*}} "-O5"
22-
// CHECK_Og: clang{{.*}} "-Og"
23-
// CHECK_Ofast: {{.*}}clang{{.*}} "-Ofast"
24-
// CHECK_O_DEFAULT: clang{{.*}} "-O3"
16+
// CHECK_O0: "-cc1"{{.*}} "-O0"
17+
// CHECK_O1: "-cc1"{{.*}} "-O1"
18+
// CHECK_O2: "-cc1"{{.*}} "-O2"
19+
// CHECK_O3: "-cc1"{{.*}} "-O3"
20+
// CHECK_O4: "-cc1"{{.*}} "-O3"
21+
// CHECK_O5: "-cc1"{{.*}} "-O5"
22+
// CHECK_Og: "-cc1"{{.*}} "-Og"
23+
// CHECK_Ofast: "-cc1"{{.*}} "-Ofast"
24+
// CHECK_O_DEFAULT: "-cc1"{{.*}} "-O3"
2525

26-
// CHK-INC: clang{{.*}} "-cc1" {{.*}}"-finclude-default-header" "-fdeclare-opencl-builtins" {{.*}}"-x" "cl"
27-
// CHK-INC-NOT: clang{{.*}} "-cc1" {{.*}}"-finclude-default-header" "-fdeclare-opencl-builtins" {{.*}}"-x" "cpp-output"
26+
// CHK-INC: "-cc1" {{.*}}"-finclude-default-header" "-fdeclare-opencl-builtins" {{.*}}"-x" "cl"
27+
// CHK-INC-NOT: "-cc1" {{.*}}"-finclude-default-header" "-fdeclare-opencl-builtins" {{.*}}"-x" "cpp-output"

clang/test/Driver/amdgpu-toolchain.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
2-
// RUN: %clang -### -g -target amdgcn--amdhsa -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
3-
// RUN: %clang -### -target amdgcn-amd-amdpal -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
4-
// RUN: %clang -### -g -target amdgcn-amd-amdpal -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
5-
// RUN: %clang -### -target amdgcn-mesa-mesa3d -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
6-
// RUN: %clang -### -g -target amdgcn-mesa-mesa3d -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
1+
// RUN: %clang -### --target=amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
2+
// RUN: %clang -### -g --target=amdgcn--amdhsa -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
3+
// RUN: %clang -### --target=amdgcn-amd-amdpal -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
4+
// RUN: %clang -### -g --target=amdgcn-amd-amdpal -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
5+
// RUN: %clang -### --target=amdgcn-mesa-mesa3d -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
6+
// RUN: %clang -### -g --target=amdgcn-mesa-mesa3d -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
77

8-
// AS_LINK: clang{{.*}} "-cc1as"
8+
// AS_LINK: "-cc1as"
99
// AS_LINK: ld.lld{{.*}} "-shared"
1010

1111
// DWARF_VER: "-dwarf-version=5"
1212

13-
// RUN: %clang -### -target amdgcn-amd-amdhsa -mcpu=gfx906 -nogpulib \
13+
// RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx906 -nogpulib \
1414
// RUN: -flto %s 2>&1 | FileCheck -check-prefix=LTO %s
1515
// LTO: clang{{.*}} "-flto=full"
1616
// LTO: ld.lld{{.*}}

clang/test/Driver/avr-mmcu.c

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
11
// A test for the propagation of the -mmcu option to -cc1 and -cc1as
22

3-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=attiny11 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK0 %s
4-
// CHECK0: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "attiny11"
5-
// CHECK0: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "attiny11"
3+
// RUN: %clang -### --target=avr -mmcu=attiny11 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK0 %s
4+
// CHECK0: "-cc1" {{.*}} "-target-cpu" "attiny11"
5+
// CHECK0: "-cc1as" {{.*}} "-target-cpu" "attiny11"
66

7-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=at90s2313 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK1 %s
8-
// CHECK1: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "at90s2313"
9-
// CHECK1: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "at90s2313"
7+
// RUN: %clang -### --target=avr -mmcu=at90s2313 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK1 %s
8+
// CHECK1: "-cc1" {{.*}} "-target-cpu" "at90s2313"
9+
// CHECK1: "-cc1as" {{.*}} "-target-cpu" "at90s2313"
1010

11-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=at90s8515 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK2 %s
12-
// CHECK2: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "at90s8515"
13-
// CHECK2: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "at90s8515"
11+
// RUN: %clang -### --target=avr -mmcu=at90s8515 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK2 %s
12+
// CHECK2: "-cc1" {{.*}} "-target-cpu" "at90s8515"
13+
// CHECK2: "-cc1as" {{.*}} "-target-cpu" "at90s8515"
1414

15-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=attiny13a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK3 %s
16-
// CHECK3: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "attiny13a"
17-
// CHECK3: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "attiny13a"
15+
// RUN: %clang -### --target=avr -mmcu=attiny13a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK3 %s
16+
// CHECK3: "-cc1" {{.*}} "-target-cpu" "attiny13a"
17+
// CHECK3: "-cc1as" {{.*}} "-target-cpu" "attiny13a"
1818

19-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=attiny88 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK4 %s
20-
// CHECK4: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "attiny88"
21-
// CHECK4: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "attiny88"
19+
// RUN: %clang -### --target=avr -mmcu=attiny88 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK4 %s
20+
// CHECK4: "-cc1" {{.*}} "-target-cpu" "attiny88"
21+
// CHECK4: "-cc1as" {{.*}} "-target-cpu" "attiny88"
2222

23-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=attiny88 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK5 %s
24-
// CHECK5: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "attiny88"
25-
// CHECK5: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "attiny88"
23+
// RUN: %clang -### --target=avr -mmcu=attiny88 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK5 %s
24+
// CHECK5: "-cc1" {{.*}} "-target-cpu" "attiny88"
25+
// CHECK5: "-cc1as" {{.*}} "-target-cpu" "attiny88"
2626

27-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega8u2 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK6 %s
28-
// CHECK6: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega8u2"
29-
// CHECK6: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega8u2"
27+
// RUN: %clang -### --target=avr -mmcu=atmega8u2 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK6 %s
28+
// CHECK6: "-cc1" {{.*}} "-target-cpu" "atmega8u2"
29+
// CHECK6: "-cc1as" {{.*}} "-target-cpu" "atmega8u2"
3030

31-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega8u2 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK7 %s
32-
// CHECK7: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega8u2"
33-
// CHECK7: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega8u2"
31+
// RUN: %clang -### --target=avr -mmcu=atmega8u2 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK7 %s
32+
// CHECK7: "-cc1" {{.*}} "-target-cpu" "atmega8u2"
33+
// CHECK7: "-cc1as" {{.*}} "-target-cpu" "atmega8u2"
3434

35-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega8a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK8 %s
36-
// CHECK8: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega8a"
37-
// CHECK8: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega8a"
35+
// RUN: %clang -### --target=avr -mmcu=atmega8a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK8 %s
36+
// CHECK8: "-cc1" {{.*}} "-target-cpu" "atmega8a"
37+
// CHECK8: "-cc1as" {{.*}} "-target-cpu" "atmega8a"
3838

39-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega8a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK9 %s
40-
// CHECK9: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega8a"
41-
// CHECK9: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega8a"
39+
// RUN: %clang -### --target=avr -mmcu=atmega8a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECK9 %s
40+
// CHECK9: "-cc1" {{.*}} "-target-cpu" "atmega8a"
41+
// CHECK9: "-cc1as" {{.*}} "-target-cpu" "atmega8a"
4242

43-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega16a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKa %s
44-
// CHECKa: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega16a"
45-
// CHECKa: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega16a"
43+
// RUN: %clang -### --target=avr -mmcu=atmega16a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKa %s
44+
// CHECKa: "-cc1" {{.*}} "-target-cpu" "atmega16a"
45+
// CHECKa: "-cc1as" {{.*}} "-target-cpu" "atmega16a"
4646

47-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega16a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKb %s
48-
// CHECKb: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega16a"
49-
// CHECKb: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega16a"
47+
// RUN: %clang -### --target=avr -mmcu=atmega16a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKb %s
48+
// CHECKb: "-cc1" {{.*}} "-target-cpu" "atmega16a"
49+
// CHECKb: "-cc1as" {{.*}} "-target-cpu" "atmega16a"
5050

51-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega128a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKc %s
52-
// CHECKc: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega128a"
53-
// CHECKc: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega128a"
51+
// RUN: %clang -### --target=avr -mmcu=atmega128a -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKc %s
52+
// CHECKc: "-cc1" {{.*}} "-target-cpu" "atmega128a"
53+
// CHECKc: "-cc1as" {{.*}} "-target-cpu" "atmega128a"
5454

55-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega2560 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKd %s
56-
// CHECKd: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega2560"
57-
// CHECKd: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega2560"
55+
// RUN: %clang -### --target=avr -mmcu=atmega2560 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKd %s
56+
// CHECKd: "-cc1" {{.*}} "-target-cpu" "atmega2560"
57+
// CHECKd: "-cc1as" {{.*}} "-target-cpu" "atmega2560"
5858

59-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=attiny10 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKe %s
60-
// CHECKe: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "attiny10"
61-
// CHECKe: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "attiny10"
59+
// RUN: %clang -### --target=avr -mmcu=attiny10 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKe %s
60+
// CHECKe: "-cc1" {{.*}} "-target-cpu" "attiny10"
61+
// CHECKe: "-cc1as" {{.*}} "-target-cpu" "attiny10"
6262

63-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atxmega16a4 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKf %s
64-
// CHECKf: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atxmega16a4"
65-
// CHECKf: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atxmega16a4"
63+
// RUN: %clang -### --target=avr -mmcu=atxmega16a4 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKf %s
64+
// CHECKf: "-cc1" {{.*}} "-target-cpu" "atxmega16a4"
65+
// CHECKf: "-cc1as" {{.*}} "-target-cpu" "atxmega16a4"
6666

67-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atxmega64b1 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKg %s
68-
// CHECKg: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atxmega64b1"
69-
// CHECKg: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atxmega64b1"
67+
// RUN: %clang -### --target=avr -mmcu=atxmega64b1 -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKg %s
68+
// CHECKg: "-cc1" {{.*}} "-target-cpu" "atxmega64b1"
69+
// CHECKg: "-cc1as" {{.*}} "-target-cpu" "atxmega64b1"
7070

71-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atxmega64a1u -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKh %s
72-
// CHECKh: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atxmega64a1u"
73-
// CHECKh: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atxmega64a1u"
71+
// RUN: %clang -### --target=avr -mmcu=atxmega64a1u -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKh %s
72+
// CHECKh: "-cc1" {{.*}} "-target-cpu" "atxmega64a1u"
73+
// CHECKh: "-cc1as" {{.*}} "-target-cpu" "atxmega64a1u"
7474

75-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atxmega128a3u -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKj %s
76-
// CHECKj: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atxmega128a3u"
77-
// CHECKj: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atxmega128a3u"
75+
// RUN: %clang -### --target=avr -mmcu=atxmega128a3u -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKj %s
76+
// CHECKj: "-cc1" {{.*}} "-target-cpu" "atxmega128a3u"
77+
// CHECKj: "-cc1as" {{.*}} "-target-cpu" "atxmega128a3u"
7878

79-
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atxmega128a4u -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKi %s
80-
// CHECKi: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atxmega128a4u"
81-
// CHECKi: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atxmega128a4u"
79+
// RUN: %clang -### --target=avr -mmcu=atxmega128a4u -save-temps %s 2>&1 | FileCheck -check-prefix=CHECKi %s
80+
// CHECKi: "-cc1" {{.*}} "-target-cpu" "atxmega128a4u"
81+
// CHECKi: "-cc1as" {{.*}} "-target-cpu" "atxmega128a4u"

0 commit comments

Comments
 (0)