blob: 5155dfd4a11896cd3bda1c583bf8bc325559527b [file] [log] [blame]
Rafael Espindola000421e2009-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 Espindola6d6c6042009-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
Lauro Ramos Venanciofe6e3f42007-04-23 01:29:35 +00005
Rafael Espindola000421e2009-02-27 13:37:18 +00006@i = thread_local global i32 15
Lauro Ramos Venanciofe6e3f42007-04-23 01:29:35 +00007
8define i32 @f() {
9entry:
Rafael Espindola000421e2009-02-27 13:37:18 +000010 %tmp1 = load i32* @i
Lauro Ramos Venanciofe6e3f42007-04-23 01:29:35 +000011 ret i32 %tmp1
12}