[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / x86-64-tlsdesc-gd-mixed.s
blob7727db354f0721f46446e8657f84c7d3fa53b87e
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t.so
4 # RUN: llvm-readobj -r %t.so | FileCheck %s --check-prefix=RELA
6 ## Both TLSDESC and DTPMOD64/DTPOFF64 should be present.
7 # RELA: .rela.dyn {
8 # RELA-NEXT: 0x[[#%X,ADDR:]] R_X86_64_TLSDESC a 0x0
9 # RELA-NEXT: 0x[[#ADDR+16]] R_X86_64_DTPMOD64 a 0x0
10 # RELA-NEXT: 0x[[#ADDR+24]] R_X86_64_DTPOFF64 a 0x0
11 # RELA-NEXT: }
13 leaq a@tlsdesc(%rip), %rax
14 call *a@tlscall(%rax)
15 movl %fs:(%rax), %eax
17 .byte 0x66
18 leaq a@tlsgd(%rip), %rdi
19 .word 0x6666
20 rex64
21 call __tls_get_addr@PLT
23 .section .tbss
24 .globl a
25 .zero 8
27 .zero 4