File tree 3 files changed +6
-3
lines changed 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
// We cannot check much for -mcpu=native, but it should be replaced by either generic or a valid
21
21
// Arm cpu string, depending on the host.
22
- // RUN: not %clang --target=arm64 -mcpu=native -### -c %s 2>&1 | FileCheck -check-prefix=ARM64-NATIVE %s
22
+ // RUN: %clang --target=arm64 -mcpu=native -### -c %s 2> %t.err || true
23
+ // RUN: FileCheck --input-file=%t.err -check-prefix=ARM64-NATIVE %s
23
24
// ARM64-NATIVE-NOT: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "native"
24
25
25
26
// RUN: %clang --target=arm64-apple-ios -arch arm64 -### -c %s 2>&1 | FileCheck -check-prefix=ARM64-IOS %s
Original file line number Diff line number Diff line change 2
2
// MCPU_PPC64: "-target-cpu" "ppc64"
3
3
4
4
/// We cannot check much for -mcpu=native, but it should be replaced by a CPU name.
5
- // RUN: %clang -### -c --target=powerpc64 %s -mcpu=native 2>&1 | FileCheck --check-prefix=MCPU_NATIVE %s
5
+ // RUN: %clang -### -c --target=powerpc64 %s -mcpu=native 2> %t.err || true
6
+ // RUN: FileCheck --input-file=%t.err -check-prefix=MCPU_NATIVE %s
6
7
// MCPU_NATIVE-NOT: "-target-cpu" "native"
7
8
8
9
/// Check that we are passing unknown mcpu options to the backend so an error
Original file line number Diff line number Diff line change 21
21
// MCPU-SYNTACORE-SCR1-MAX: "-target-abi" "ilp32"
22
22
23
23
// We cannot check much for -mcpu=native, but it should be replaced by a valid CPU string.
24
- // RUN: not %clang --target=riscv64 -### -c %s 2>&1 -mcpu=native | FileCheck -check-prefix=MCPU-NATIVE %s
24
+ // RUN: %clang --target=riscv64 -### -c %s -mcpu=native 2> %t.err || true
25
+ // RUN: FileCheck --input-file=%t.err -check-prefix=MCPU-NATIVE %s
25
26
// MCPU-NATIVE-NOT: "-target-cpu" "native"
26
27
27
28
// RUN: %clang --target=riscv32 -### -c %s 2>&1 -mtune=rocket-rv32 | FileCheck -check-prefix=MTUNE-ROCKET32 %s
You can’t perform that action at this time.
0 commit comments