diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-23 00:30:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-23 00:30:03 +0000 |
commit | ce0a5cda8aa547d5219da70a68bef40d5ed8392c (patch) | |
tree | 714edd3bf816198cfd4e6fca70b2c6bdda0ab629 /test | |
parent | fc47253294047a62b30a2347a0bf421d934fb69c (diff) | |
download | external_llvm-ce0a5cda8aa547d5219da70a68bef40d5ed8392c.zip external_llvm-ce0a5cda8aa547d5219da70a68bef40d5ed8392c.tar.gz external_llvm-ce0a5cda8aa547d5219da70a68bef40d5ed8392c.tar.bz2 |
Handle aliases to tls variables in all architectures, not just x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Mips/tls-alias.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/tls-alias.ll b/test/CodeGen/Mips/tls-alias.ll new file mode 100644 index 0000000..d681091 --- /dev/null +++ b/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 +} |