blob: cdfe97ca0b04f35950d9a66a71d42d2687ae3829 [file] [log] [blame]
Rafael Espindola9a580232009-02-27 13:37:18 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
2; RUN: grep {leal i@TLSGD(,%ebx,1), %eax} %t
3; RUN: grep {call ___tls_get_addr@PLT} %t
Rafael Espindola1cefb742009-04-12 10:43:41 +00004; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
5; RUN: grep {leaq i@TLSGD(%rip), %rdi} %t2
6; RUN: grep {call __tls_get_addr@PLT} %t2
Rafael Espindola9a580232009-02-27 13:37:18 +00007
8@i = thread_local global i32 15
9
10define i32* @f() {
11entry:
12 ret i32* @i
13}