summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/global-sections-tls.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-28 17:57:51 +0000
committerChris Lattner <sabre@nondot.org>2009-07-28 17:57:51 +0000
commit513a36b63d30ebff363340eee957e8b9631c200a (patch)
tree3fa0e846ad9cda471c747f5e39c2bf69b7cc1ec9 /llvm/test/CodeGen/X86/global-sections-tls.ll
parentd5d6413aa518287d6168e1aa29db627bf3c83ba6 (diff)
downloadbcm5719-llvm-513a36b63d30ebff363340eee957e8b9631c200a.tar.gz
bcm5719-llvm-513a36b63d30ebff363340eee957e8b9631c200a.zip
Fix PR4639, a ELF-TLS regression from some of my refactoring.
llvm-svn: 77336
Diffstat (limited to 'llvm/test/CodeGen/X86/global-sections-tls.ll')
-rw-r--r--llvm/test/CodeGen/X86/global-sections-tls.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections-tls.ll b/llvm/test/CodeGen/X86/global-sections-tls.ll
new file mode 100644
index 00000000000..a80cf327c0f
--- /dev/null
+++ b/llvm/test/CodeGen/X86/global-sections-tls.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -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