summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/tls-alias.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-06-23 00:30:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-06-23 00:30:03 +0000
commita3088f09b3d647b25e7d01e16bdf2b15ac18417e (patch)
treec7333928424eeab07296b2c44101d0fb5d9fd4f6 /llvm/test/CodeGen/Mips/tls-alias.ll
parent68c2f9a9a79dda533b4e7af346362803d80fe705 (diff)
downloadbcm5719-llvm-a3088f09b3d647b25e7d01e16bdf2b15ac18417e.tar.gz
bcm5719-llvm-a3088f09b3d647b25e7d01e16bdf2b15ac18417e.zip
Handle aliases to tls variables in all architectures, not just x86.
llvm-svn: 159058
Diffstat (limited to 'llvm/test/CodeGen/Mips/tls-alias.ll')
-rw-r--r--llvm/test/CodeGen/Mips/tls-alias.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/tls-alias.ll b/llvm/test/CodeGen/Mips/tls-alias.ll
new file mode 100644
index 00000000000..d681091f4c1
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/tls-alias.ll
@@ -0,0 +1,10 @@
+; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s
+
+@foo = thread_local global i32 42
+@bar = hidden alias i32* @foo
+
+define i32* @zed() {
+; CHECK: __tls_get_addr
+; CHECK-NEXT: %tlsgd(bar)
+ ret i32* @bar
+}
OpenPOWER on IntegriCloud