Fix a FIXME. _foo.eh symbols are currently always exported so that the linker
[oota-llvm.git] / test / CodeGen / X86 / tls8.ll
index fb570b0118eb0489886b60ef75ff95c252506ef9..375af94920f5b5195b0dcc2fcb8bc368f0c62d38 100644 (file)
@@ -1,6 +1,9 @@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
-; RUN: grep {movl      \$i@NTPOFF, %eax} %t
-; RUN: grep {addl      %gs:0, %eax} %t
+; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t
+; RUN: grep {movl      %gs:0, %eax} %t
+; RUN: grep {leal      i@NTPOFF(%eax), %eax} %t
+; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
+; RUN: grep {movq      %fs:0, %rax} %t2
+; RUN: grep {leaq      i@TPOFF(%rax), %rax} %t2
 
 @i = hidden thread_local global i32 15