2012-08-22 10:51:28 +08:00
|
|
|
; RUN: llc -march=mipsel -relocation-model=pic -disable-mips-delay-filler < %s | FileCheck %s
|
2012-06-23 08:30:03 +08:00
|
|
|
|
|
|
|
@foo = thread_local global i32 42
|
2014-05-29 02:15:43 +08:00
|
|
|
@bar = hidden thread_local alias i32* @foo
|
2012-06-23 08:30:03 +08:00
|
|
|
|
|
|
|
define i32* @zed() {
|
2013-07-13 07:33:22 +08:00
|
|
|
; CHECK-DAG: __tls_get_addr
|
2014-05-24 03:16:56 +08:00
|
|
|
; CHECK-DAG: %tlsldm(bar)
|
2012-06-23 08:30:03 +08:00
|
|
|
ret i32* @bar
|
|
|
|
}
|