Refactor TLS code and add some tests. The tests and expected results are:
[oota-llvm.git] / test / CodeGen / X86 / tls2.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
2 ; RUN: grep {movl       %gs:0, %eax} %t
3 ; RUN: grep {leal       i@NTPOFF(%eax), %eax} %t
4
5 @i = thread_local global i32 15
6
7 define i32* @f() {
8 entry:
9         ret i32* @i
10 }