1414// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-TPIDRPRW %s
1515// ARMv7_THREAD_POINTER-TPIDRPRW: "-target-feature" "+read-tp-tpidrprw"
1616
17- // RUN: %clang --target=armv6t2-linux -mtp=cp15 -### -S %s 2>&1 | \
18- // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
19- // RUN: %clang --target=thumbv6t2-linux -mtp=cp15 -### -S %s 2>&1 | \
20- // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
2117// RUN: %clang --target=armv6k-linux -mtp=cp15 -### -S %s 2>&1 | \
2218// RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
19+ // ARM_THREAD_POINTER-HARD: "-target-feature" "+read-tp-tpidruro"
20+
21+ // RUN: %clang --target=thumbv6t2-linux -mtp=cp15 -### -S %s 2>&1 | \
22+ // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER_NO_HARD %s
23+ // RUN: %clang --target=armv6t2-linux -mtp=cp15 -### -S %s 2>&1 | \
24+ // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER_NO_HARD %s
2325// RUN: %clang --target=armv6-linux -mtp=cp15 -### -S %s 2>&1 | \
24- // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
26+ // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER_NO_HARD %s
2527// RUN: %clang --target=armv5t-linux -mtp=cp15 -### -S %s 2>&1 | \
26- // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
27- // ARM_THREAD_POINTER-HARD : "-target-feature" "+read-tp-tpidruro"
28+ // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER_NO_HARD %s
29+ // ARM_THREAD_POINTER_NO_HARD-NOT : "-target-feature" "+read-tp-tpidruro"
2830
2931// RUN: %clang --target=armv5t-linux -mtp=cp15 -x assembler -### %s 2>&1 | \
3032// RUN: FileCheck -check-prefix=ARMv5_THREAD_POINTER_ASSEMBLER %s
3133// ARMv5_THREAD_POINTER_ASSEMBLER-NOT: hardware TLS register is not supported for the armv5 sub-architecture
3234
33- // RUN: not %clang --target=armv6-linux -mthumb -mtp=cp15 -### -S %s 2>&1 | \
35+ // not RUN: %clang --target=armv6-linux -mthumb -mtp=cp15 -### -S %s 2>&1 | \
3436// RUN: FileCheck -check-prefix=THUMBv6_THREAD_POINTER_UNSUPP %s
35- // RUN: not %clang --target=thumbv6-linux -mthumb -mtp=cp15 -### -S %s 2>&1 | \
37+ // not RUN: %clang --target=thumbv6-linux -mthumb -mtp=cp15 -### -S %s 2>&1 | \
3638// RUN: FileCheck -check-prefix=THUMBv6_THREAD_POINTER_UNSUPP %s
3739// THUMBv6_THREAD_POINTER_UNSUPP: hardware TLS register is not supported for the thumbv6 sub-architecture
3840
4749// RUN: %clang --target=armv7-linux -mtp=auto -### -S %s 2>&1 | \
4850// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_Auto %s
4951// ARMv7_THREAD_POINTER_Auto: "-target-feature" "+read-tp-tpidruro"
52+
53+ // RUN: %clang --target=armv5t-linux -mtp=auto -### -S %s 2>&1 | \
54+ // RUN: FileCheck -check-prefix=ARMv5t_THREAD_POINTER_Auto %s
55+ // ARMv5t_THREAD_POINTER_Auto-NOT: "-target-feature" "+read-tp-tpidruro"
56+
57+ // RUN: %clang --target=armv6k-linux -mtp=auto -### -S %s 2>&1 | \
58+ // RUN: FileCheck -check-prefix=ARMv6k_THREAD_POINTER_Auto %s
59+ // ARMv6k_THREAD_POINTER_Auto: "-target-feature" "+read-tp-tpidruro"
60+
61+ // RUN: %clang --target=armv6-linux -mtp=auto -### -S %s 2>&1 | \
62+ // RUN: FileCheck -check-prefix=ARMv6_THREAD_POINTER_Auto %s
63+ // ARMv6_THREAD_POINTER_Auto-NOT: "-target-feature" "+read-tp-tpidruro"
64+
65+ // RUN: %clang --target=armv6kz-linux -mtp=auto -### -S %s 2>&1 | \
66+ // RUN: FileCheck -check-prefix=ARMv6kz_THREAD_POINTER_Auto %s
67+ // ARMv6kz_THREAD_POINTER_Auto: "-target-feature" "+read-tp-tpidruro"
68+ // RUN: %clang --target=armv6kz-linux -mtp=cp15 -### -S %s 2>&1 | \
69+ // RUN: FileCheck -check-prefix=ARMv6kz_THREAD_POINTER_Cp15 %s
70+ // ARMv6kz_THREAD_POINTER_Cp15: "-target-feature" "+read-tp-tpidruro"
0 commit comments