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
This commit is contained in:
Rafael Espindola
2012-06-23 00:30:03 +00:00
parent fc47253294
commit ce0a5cda8a
3 changed files with 21 additions and 8 deletions

View File

@ -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
}