[clang] [clang][test] Fix emulated-tls.cpp failure on LoongArch (PR #208886)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 10 23:54:31 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: wanglei (wangleiat)
<details>
<summary>Changes</summary>
The LoongArch backend does not support emulated TLS, so
mark the test as unsupported to fix the LoongArch buildbot
failure.
Failure: https://lab.llvm.org/staging/#/builders/20/builds/28875
---
Full diff: https://github.com/llvm/llvm-project/pull/208886.diff
1 Files Affected:
- (modified) clang/test/Interpreter/emulated-tls.cpp (+3)
``````````diff
diff --git a/clang/test/Interpreter/emulated-tls.cpp b/clang/test/Interpreter/emulated-tls.cpp
index 73afe172ef6d9..bd80b65957ee3 100644
--- a/clang/test/Interpreter/emulated-tls.cpp
+++ b/clang/test/Interpreter/emulated-tls.cpp
@@ -1,6 +1,9 @@
// REQUIRES: host-supports-jit
// UNSUPPORTED: system-windows
//
+// Emulated TLS is not supported by the LoongArch backend.
+// UNSUPPORTED: target=loongarch{{.*}}
+//
// An inline function that odr-uses a non-zero-initialized thread_local is
// emitted as a weak (linkonce_odr) definition into every PartialTranslationUnit
// that references it. With emulated TLS that set includes an __emutls_t.<var>
``````````
</details>
https://github.com/llvm/llvm-project/pull/208886
More information about the cfe-commits
mailing list