blob: c9b73fba8c7d5ce2ba75ca3da08c9a3d3ddd8306 [file] [log] [blame]
Lauro Ramos Venancio0a2cdb62007-04-23 01:29:35 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu | \
Dan Gohmanb1576f52007-07-31 20:11:57 +00002; RUN: grep {movl %gs:(%eax), %eax}
Lauro Ramos Venancio0a2cdb62007-04-23 01:29:35 +00003; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu | \
Dan Gohmanb1576f52007-07-31 20:11:57 +00004; RUN: grep {addl i@INDNTPOFF, %eax}
Lauro Ramos Venancio0a2cdb62007-04-23 01:29:35 +00005; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic | \
Dan Gohmanb1576f52007-07-31 20:11:57 +00006; RUN: grep {leal i@TLSGD(,%ebx,1), %eax}
Lauro Ramos Venancio0a2cdb62007-04-23 01:29:35 +00007
8@i = external thread_local global i32 ; <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}