summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/tlv-1.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-12-08 23:33:23 +0000
committerEric Christopher <echristo@apple.com>2010-12-08 23:33:23 +0000
commit7b5d456d5cd3c2691f864e2c8d3b22196434ddcf (patch)
treea207c965a1be35c7a286eb9d257c21d9b61c2d97 /test/CodeGen/X86/tlv-1.ll
parent60fc2ed2bb7e031c95fabaae581583110af8b831 (diff)
downloadllvm-7b5d456d5cd3c2691f864e2c8d3b22196434ddcf.tar.gz
llvm-7b5d456d5cd3c2691f864e2c8d3b22196434ddcf.tar.bz2
llvm-7b5d456d5cd3c2691f864e2c8d3b22196434ddcf.tar.xz
Move this test to tlv* to make it easier to notice versus linux tls
support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tlv-1.ll')
-rw-r--r--test/CodeGen/X86/tlv-1.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tlv-1.ll b/test/CodeGen/X86/tlv-1.ll
new file mode 100644
index 0000000000..de694d8d47
--- /dev/null
+++ b/test/CodeGen/X86/tlv-1.ll
@@ -0,0 +1,19 @@
+; RUN: llc < %s -mtriple x86_64-apple-darwin | FileCheck %s
+
+@a = thread_local global i32 0 ; <i32*> [#uses=0]
+@b = thread_local global i32 0 ; <i32*> [#uses=0]
+
+; CHECK: .tbss _a$tlv$init, 4, 2
+; CHECK: .section __DATA,__thread_vars,thread_local_variables
+; CHECK: .globl _a
+; CHECK: _a:
+; CHECK: .quad __tlv_bootstrap
+; CHECK: .quad 0
+; CHECK: .quad _a$tlv$init
+
+; CHECK: .tbss _b$tlv$init, 4, 2
+; CHECK: .globl _b
+; CHECK: _b:
+; CHECK: .quad __tlv_bootstrap
+; CHECK: .quad 0
+; CHECK: .quad _b$tlv$init