Skip to content

Commit 7a49c30

Browse files
committed
[Driver,test] Remove invalid -arch for non-Darwin AArch64 OSes
See also #74365. clang/lib/Driver/ToolChains/Arch/AArch64.cpp inappropriately claims OPT_arch, which will be removed by the follow-up change.
1 parent 8f9aac4 commit 7a49c30

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

clang/test/Driver/aarch64-thread-pointer.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
// Test of the AArch64 values of -mtp=, checking that each one maps to
22
// the right target features.
33

4-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a 2>&1 | \
4+
// RUN: %clang --target=aarch64-linux -### -S %s 2>&1 | \
55
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL0 %s
6-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=el0 2>&1 | \
6+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=el0 2>&1 | \
77
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL0 %s
8-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=tpidr_el0 2>&1 | \
8+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=tpidr_el0 2>&1 | \
99
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL0 %s
1010
// ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidrro-el0"
1111
// ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidr-el1"
1212
// ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidr-el2"
1313
// ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidr-el3"
1414

15-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=tpidrro_el0 2>&1 | \
15+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=tpidrro_el0 2>&1 | \
1616
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_ROEL0 %s
1717
// ARMv8_THREAD_POINTER_ROEL0: "-target-feature" "+tpidrro-el0"
1818
// ARMv8_THREAD_POINTER_ROEL0-NOT: "-target-feature" "+tpidr-el1"
1919
// ARMv8_THREAD_POINTER_ROEL0-NOT: "-target-feature" "+tpidr-el2"
2020
// ARMv8_THREAD_POINTER_ROEL0-NOT: "-target-feature" "+tpidr-el3"
2121

22-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=el1 2>&1 | \
22+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=el1 2>&1 | \
2323
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL1 %s
24-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=tpidr_el1 2>&1 | \
24+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=tpidr_el1 2>&1 | \
2525
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL1 %s
2626
// ARMv8_THREAD_POINTER_EL1-NOT: "-target-feature" "+tpidrro-el0"
2727
// ARMv8_THREAD_POINTER_EL1: "-target-feature" "+tpidr-el1"
2828
// ARMv8_THREAD_POINTER_EL1-NOT: "-target-feature" "+tpidr-el2"
2929
// ARMv8_THREAD_POINTER_EL1-NOT: "-target-feature" "+tpidr-el3"
3030

31-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=el2 2>&1 | \
31+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=el2 2>&1 | \
3232
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL2 %s
33-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=tpidr_el2 2>&1 | \
33+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=tpidr_el2 2>&1 | \
3434
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL2 %s
3535
// ARMv8_THREAD_POINTER_EL2-NOT: "-target-feature" "+tpidrro-el0"
3636
// ARMv8_THREAD_POINTER_EL2-NOT: "-target-feature" "+tpidr-el1"
3737
// ARMv8_THREAD_POINTER_EL2: "-target-feature" "+tpidr-el2"
3838
// ARMv8_THREAD_POINTER_EL2-NOT: "-target-feature" "+tpidr-el3"
3939

40-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=el3 2>&1 | \
40+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=el3 2>&1 | \
4141
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL3 %s
42-
// RUN: %clang --target=aarch64-linux -### -S %s -arch armv8a -mtp=tpidr_el3 2>&1 | \
42+
// RUN: %clang --target=aarch64-linux -### -S %s -mtp=tpidr_el3 2>&1 | \
4343
// RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL3 %s
4444
// ARMv8_THREAD_POINTER_EL3-NOT: "-target-feature" "+tpidrro-el0"
4545
// ARMv8_THREAD_POINTER_EL3-NOT: "-target-feature" "+tpidr-el1"

clang/test/Headers/arm-neon-header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// RUN: %clang -fsyntax-only -Wall -Werror -ffreestanding --target=aarch64-none-elf -march=armv8.2-a+fp16fml+crypto+dotprod -std=c11 -xc --sysroot=%S/Inputs -flax-vector-conversions=none %s
2424
// RUN: %clang -fsyntax-only -Wall -Werror -ffreestanding --target=aarch64_be-none-elf -march=armv8.2-a+fp16fml+crypto+dotprod -std=c11 -xc --sysroot=%S/Inputs -flax-vector-conversions=none %s
25-
// RUN: %clang -fsyntax-only -Wall -Werror -ffreestanding --target=arm64-linux-gnu -arch +neon -std=c11 -xc --sysroot=%S/Inputs -flax-vector-conversions=none %s
25+
// RUN: %clang -fsyntax-only -Wall -Werror -ffreestanding --target=arm64-linux-gnu -std=c11 -xc --sysroot=%S/Inputs -flax-vector-conversions=none %s
2626

2727
// REQUIRES: aarch64-registered-target || arm-registered-target
2828

0 commit comments

Comments
 (0)