blob: e9116e772090fc03ad26cdb004b6af6824282643 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t
Rafael Espindola9a580232009-02-27 13:37:18 +00002; RUN: grep {movl %gs:i@NTPOFF, %eax} %t
Dan Gohman36a09472009-09-08 23:54:48 +00003; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
Rafael Espindola7ff5bff2009-04-13 13:02:49 +00004; RUN: grep {movl %fs:i@TPOFF, %eax} %t2
Rafael Espindola9a580232009-02-27 13:37:18 +00005
6@i = hidden thread_local global i32 15
7
8define i32 @f() {
9entry:
10 %tmp1 = load i32* @i
11 ret i32 %tmp1
12}