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
23- // RUN: %clang --target=armv6-linux -mtp=cp15 -### -S %s 2>&1 | \
24- // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
25- // RUN: %clang --target=armv5t-linux -mtp=cp15 -### -S %s 2>&1 | \
26- // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER-HARD %s
2719// ARM_THREAD_POINTER-HARD: "-target-feature" "+read-tp-tpidruro"
2820
21+ // RUN: %clang --target=armv6k-linux -mtp=auto -### -S %s 2>&1 | \
22+ // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER_AUTO %s
23+ // ARM_THREAD_POINTER_AUTO-NOT: "-target-feature" "+read-tp-tpidruro"
24+
25+ // RUN: %clang --target=thumbv6k-apple-darwin -### -S %s 2>&1 | \
26+ // RUN: FileCheck -check-prefix=THUMBv6_THREAD_POINTER_NO_AUTO %s
27+ // THUMBv6_THREAD_POINTER_NO_AUTO-NOT: "-target-feature" "+read-tp-tpidruro"
28+
29+ // RUN: not %clang --target=thumbv6k-apple-darwin -mtp=cp15 -### -S %s 2>&1 | \
30+ // RUN: FileCheck -check-prefix=THUMBv6_THREAD_POINTER_NO_HARD %s
31+ // THUMBv6_THREAD_POINTER_NO_HARD: unsupported option '-mtp=' for target 'thumbv6k-apple-darwin'
32+
33+ // RUN: not %clang --target=thumbv6t2-linux -mtp=cp15 -### -S %s 2>&1 | \
34+ // RUN: FileCheck -check-prefix=ARM_THREAD_POINTER_NO_HARD %s
35+ // ARM_THREAD_POINTER_NO_HARD: hardware TLS register is not supported for the armv6t2 sub-architecture
36+
2937// RUN: %clang --target=armv5t-linux -mtp=cp15 -x assembler -### %s 2>&1 | \
3038// RUN: FileCheck -check-prefix=ARMv5_THREAD_POINTER_ASSEMBLER %s
3139// ARMv5_THREAD_POINTER_ASSEMBLER-NOT: hardware TLS register is not supported for the armv5 sub-architecture
4755// RUN: %clang --target=armv7-linux -mtp=auto -### -S %s 2>&1 | \
4856// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_Auto %s
4957// ARMv7_THREAD_POINTER_Auto: "-target-feature" "+read-tp-tpidruro"
58+
59+ // RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \
60+ // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_HARD %s
61+ // ARMv7_THREAD_POINTER_HARD: "-target-feature" "+read-tp-tpidruro"
62+
63+ // RUN: %clang --target=armv7m-linux -mtp=auto -### -S %s 2>&1 | \
64+ // RUN: FileCheck -check-prefix=ARMv7m_THREAD_POINTER_Auto %s
65+ // ARMv7m_THREAD_POINTER_Auto-NOT: "-target-feature" "+read-tp-tpidruro"
66+
67+ // RUN: not %clang --target=armv7m-linux -mtp=cp15 -### -S %s 2>&1 | \
68+ // RUN: FileCheck -check-prefix=ARMv7m_THREAD_POINTER_HARD %s
69+ // ARMv7m_THREAD_POINTER_HARD: hardware TLS register is not supported for the thumbv7m sub-architecture
70+
71+ // RUN: %clang --target=armv5t-linux -mtp=auto -### -S %s 2>&1 | \
72+ // RUN: FileCheck -check-prefix=ARMv5t_THREAD_POINTER_Auto %s
73+ // ARMv5t_THREAD_POINTER_Auto-NOT: "-target-feature" "+read-tp-tpidruro"
74+
75+ // RUN: %clang --target=armv6k-linux -mtp=cp15 -### -S %s 2>&1 | \
76+ // RUN: FileCheck -check-prefix=ARMv6k_THREAD_POINTER_Auto %s
77+ // ARMv6k_THREAD_POINTER_Auto: "-target-feature" "+read-tp-tpidruro"
78+
79+ // RUN: not %clang --target=armv6t2-linux -mtp=cp15 -### -S %s 2>&1 | \
80+ // RUN: FileCheck -check-prefix=ARMv6t2_THREAD_POINTER_HARD %s
81+ // ARMv6t2_THREAD_POINTER_HARD: hardware TLS register is not supported for the armv6t2 sub-architecture
82+
83+ // RUN: %clang --target=armv6t2-linux -mtp=auto -### -S %s 2>&1 | \
84+ // RUN: FileCheck -check-prefix=ARMV6t2_THREAD_POINTER_AUTO %s
85+ // ARMV6t2_THREAD_POINTER_AUTO-NOT: "-target-feature" "+read-tp-tpidruro"
86+
87+ // RUN: %clang --target=armv6kz-linux -mtp=cp15 -### -S %s 2>&1 | \
88+ // RUN: FileCheck -check-prefix=ARMv6kz_THREAD_POINTER_HARD %s
89+ // ARMv6kz_THREAD_POINTER_HARD: "-target-feature" "+read-tp-tpidruro"
90+
91+ // RUN: %clang --target=armv6kz-linux -mtp=auto -### -S %s 2>&1 | \
92+ // RUN: FileCheck -check-prefix=ARMV6KZ_THREAD_POINTER_AUTO %s
93+ // ARMV6KZ_THREAD_POINTER_AUTO-NOT: "-target-feature" "+read-tp-tpidruro"
0 commit comments