blob: 6ab3ee0a69fd8e05a1d62f6c929bde151be934c3 [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 = thread_local global i32 15
9
Chris Lattner19f27572009-06-20 19:48:26 +000010define i32* @f() nounwind {
Rafael Espindola7b620af2009-02-27 13:37:18 +000011entry:
12 ret i32* @i
13}