blob: c4025034bced7fa3b249bf1e06260fb4e7e852d1 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu | \
Dan Gohman91888f02007-07-31 20:11:57 +00002; RUN: grep {movl %gs:i@NTPOFF, %eax}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu | \
Dan Gohman91888f02007-07-31 20:11:57 +00004; RUN: grep {leal i@NTPOFF(%eax), %eax}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic | \
Dan Gohman91888f02007-07-31 20:11:57 +00006; RUN: grep {leal i@TLSGD(,%ebx,1), %eax}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
8@i = thread_local global i32 15 ; <i32*> [#uses=2]
9
10define i32 @f() {
11entry:
12 %tmp1 = load i32* @i ; <i32> [#uses=1]
13 ret i32 %tmp1
14}
15
16define i32* @g() {
17entry:
18 ret i32* @i
19}