2012-06-09 07:15:12 +08:00
|
|
|
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu -regalloc=fast -optimize-regalloc=0 -relocation-model=pic > %t2
|
2010-11-28 04:43:02 +08:00
|
|
|
; RUN: grep {leaq.*TLSGD} %t2
|
2011-03-10 06:07:31 +08:00
|
|
|
; RUN: grep {__tls_get_addr} %t2
|
2009-04-27 23:08:34 +08:00
|
|
|
; PR4004
|
2009-04-24 20:59:40 +08:00
|
|
|
|
|
|
|
@i = thread_local global i32 15
|
|
|
|
|
|
|
|
define i32 @f() {
|
|
|
|
entry:
|
|
|
|
%tmp1 = load i32* @i
|
|
|
|
ret i32 %tmp1
|
|
|
|
}
|