blob: 5155dfd4a11896cd3bda1c583bf8bc325559527b [file] [log] [blame]
Rafael Espindola7b620af2009-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 Espindolab93a5122009-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Rafael Espindola7b620af2009-02-27 13:37:18 +00006@i = thread_local global i32 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
8define i32 @f() {
9entry:
Rafael Espindola7b620af2009-02-27 13:37:18 +000010 %tmp1 = load i32* @i
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011 ret i32 %tmp1
12}