2013-05-01 13:34:30 +08:00
|
|
|
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu -regalloc=fast -optimize-regalloc=0 -relocation-model=pic | FileCheck %s
|
2009-04-27 23:08:34 +08:00
|
|
|
; PR4004
|
2009-04-24 20:59:40 +08:00
|
|
|
|
2013-05-01 13:34:30 +08:00
|
|
|
; CHECK: {{leaq.*TLSGD}}
|
|
|
|
; CHECK: {{__tls_get_addr}}
|
|
|
|
|
2009-04-24 20:59:40 +08:00
|
|
|
@i = thread_local global i32 15
|
|
|
|
|
|
|
|
define i32 @f() {
|
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp1 = load i32, i32* @i
|
2009-04-24 20:59:40 +08:00
|
|
|
ret i32 %tmp1
|
|
|
|
}
|