summaryrefslogtreecommitdiffstats
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
commit1ead4a484a95afd3e466424434d503ab39a2da20 (patch)
treefe09c1c248ae46a1e49c0d8492c43a309ee2d696
parent25b61dbac0e5f6178d5a24826a55755a3b1d9227 (diff)
downloadbcm5719-llvm-1ead4a484a95afd3e466424434d503ab39a2da20.tar.gz
bcm5719-llvm-1ead4a484a95afd3e466424434d503ab39a2da20.zip
Testcase for PR17964
llvm-svn: 194961
-rw-r--r--llvm/test/CodeGen/X86/tlv-3.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/tlv-3.ll b/llvm/test/CodeGen/X86/tlv-3.ll
new file mode 100644
index 00000000000..4f793051836
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud