summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/global-sections-tls.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/global-sections-tls.ll')
-rw-r--r--test/CodeGen/X86/global-sections-tls.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/global-sections-tls.ll b/test/CodeGen/X86/global-sections-tls.ll
new file mode 100644
index 0000000..2c23030
--- /dev/null
+++ b/test/CodeGen/X86/global-sections-tls.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX
+
+; PR4639
+@G1 = internal thread_local global i32 0 ; <i32*> [#uses=1]
+; LINUX: .section .tbss,"awT",@nobits
+; LINUX: G1:
+
+
+define i32* @foo() nounwind readnone {
+entry:
+ ret i32* @G1
+}
+
+
OpenPOWER on IntegriCloud