[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / tlsdesc-64.s
blob6da468aa5aa1764557b866533738e89e10debdc5
1 # RUN: llvm-mc -triple x86_64-pc-linux-musl %s | FileCheck --check-prefix=PRINT %s
3 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-musl %s -o %t
4 # RUN: llvm-readelf -s %t | FileCheck --check-prefix=SYM %s
5 # RUN: llvm-objdump -dr --no-show-raw-insn %t | FileCheck --match-full-lines %s
7 # PRINT: leaq a@tlsdesc(%rip), %rax
8 # PRINT-NEXT: callq *a@tlscall(%rax)
10 # SYM: TLS GLOBAL DEFAULT UND a
12 # CHECK: 0: leaq (%rip), %rax
13 # CHECK-NEXT: 0000000000000003: R_X86_64_GOTPC32_TLSDESC a-4
14 # CHECK-NEXT: 7: callq *(%rax)
15 # CHECK-NEXT: 0000000000000007: R_X86_64_TLSDESC_CALL a
17 leaq a@tlsdesc(%rip), %rax
18 call *a@tlscall(%rax)
19 addq %fs:0, %rax