Rafael Espindola | 9a58023 | 2009-02-27 13:37:18 +0000 | [diff] [blame] | 1 | ; 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 Espindola | 1cefb74 | 2009-04-12 10:43:41 +0000 | [diff] [blame^] | 4 | ; 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 Espindola | 9a58023 | 2009-02-27 13:37:18 +0000 | [diff] [blame] | 7 | |
| 8 | @i = external thread_local global i32 ; <i32*> [#uses=2] |
| 9 | |
| 10 | define i32* @f() { |
| 11 | entry: |
| 12 | ret i32* @i |
| 13 | } |