blob: 94de78f7aef78b18f63abee61d14e2bae473f898 [file] [log] [blame]
Rafael Espindola7b620af2009-02-27 13:37:18 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
Chris Lattnerf1940742009-06-20 20:38:48 +00002; RUN: grep {leal i@TLSGD(,%ebx), %eax} %t
Rafael Espindola7b620af2009-02-27 13:37:18 +00003; RUN: grep {call ___tls_get_addr@PLT} %t
Rafael Espindolac789d1f2009-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 Espindola7b620af2009-02-27 13:37:18 +00007
8@i = external thread_local global i32 ; <i32*> [#uses=2]
9
10define i32* @f() {
11entry:
12 ret i32* @i
13}