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