[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:53:57 PDT 2026
https://github.com/wangleiat created https://github.com/llvm/llvm-project/pull/208886
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
>From 616eec2a60f2ec7a43cebaa1e8e592fa9716f814 Mon Sep 17 00:00:00 2001
From: wanglei <wanglei at loongson.cn>
Date: Sat, 11 Jul 2026 14:52:52 +0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
clang/test/Interpreter/emulated-tls.cpp | 3 +++
1 file changed, 3 insertions(+)
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>
More information about the cfe-commits
mailing list