[clang] [ARM] make -mtp=TPIDRURO the default if the target architecture support a hardware thread pointer (PR #128901)

Peter Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 27 01:29:03 PST 2025


================
@@ -42,4 +42,4 @@
 
 // RUN: %clang --target=armv7-linux -### -S %s 2>&1 | \
 // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_NON %s
-// ARMv7_THREAD_POINTER_NON-NOT: "-target-feature" "+read-tp-tpidruro"
+// ARMv7_THREAD_POINTER_NON: "-target-feature" "+read-tp-tpidruro"
----------------
smithp35 wrote:

The test case you had in the previous patch for `-mtp=auto` was good. 

When `-mtp=auto` is supported, can you put it back?


https://github.com/llvm/llvm-project/pull/128901


More information about the cfe-commits mailing list