blob: 7d08df84a9fa553293e1d38ae45df127aef4fc55 [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 = external hidden thread_local global i32
7
Chris Lattnerf93b90c2010-09-22 04:39:11 +00008define i32 @f() nounwind {
Rafael Espindola9a580232009-02-27 13:37:18 +00009entry:
10 %tmp1 = load i32* @i
11 ret i32 %tmp1
12}