blob: bc0a6f0bbe618dcde40f9c13d321f5f939021582 [file] [log] [blame]
Rafael Espindola9a580232009-02-27 13:37:18 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
2; RUN: grep {movl %gs:i@NTPOFF, %eax} %t
Rafael Espindola7ff5bff2009-04-13 13:02:49 +00003; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
4; 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
8define i32 @f() {
9entry:
10 %tmp1 = load i32* @i
11 ret i32 %tmp1
12}