summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-17 10:53:19 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-17 10:53:19 +0000
commit281e8eb9fdf52cd517038ebe8df04d0558e63f39 (patch)
treecb984590c9a4fd13550ffe64f82cbf2c0e09368f /test
parentfe128c6ac8a6ae6aa85f0168f99d9c28de010fd8 (diff)
downloadllvm-281e8eb9fdf52cd517038ebe8df04d0558e63f39.tar.gz
llvm-281e8eb9fdf52cd517038ebe8df04d0558e63f39.tar.bz2
llvm-281e8eb9fdf52cd517038ebe8df04d0558e63f39.tar.xz
Testcase for PR17964
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/tlv-3.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tlv-3.ll b/test/CodeGen/X86/tlv-3.ll
new file mode 100644
index 0000000000..4f79305183
--- /dev/null
+++ b/test/CodeGen/X86/tlv-3.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -mtriple x86_64-apple-darwin | FileCheck %s
+; PR17964
+
+; CHECK: __DATA,__thread_data,thread_local_regular
+; CHECK: _foo$tlv$init
+@foo = weak_odr thread_local global i8 1, align 4
+
+define i32 @main() {
+ ret i32 0
+}