[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / mips-tls-static-64.s
blob090719ad456edb6243aa5d80f396e18a9dfc11dc
1 # REQUIRES: mips
2 # Check handling TLS related relocations and symbols when linking
3 # a 64-bit static executable.
5 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t
6 # RUN: ld.lld -static %t -o %t.exe
7 # RUN: llvm-objdump -s -t %t.exe | FileCheck %s
9 # CHECK: SYMBOL TABLE:
10 # CHECK: [[TGA:[0-9a-f]{8}]] g .text 0000000000000000 __tls_get_addr
11 # CHECK: 0000000000000000 g .tdata 0000000000000000 tls1
13 # CHECK: Contents of section .data:
14 # CHECK-NEXT: {{.*}} [[TGA]] ffffffff ffff8004 ffffffff
15 # CHECK-NEXT: {{.*}} ffff9004
17 .text
18 .global __start
19 __start:
20 nop
22 .global __tls_get_addr
23 __tls_get_addr:
24 nop
26 .data
27 loc:
28 .word __tls_get_addr
29 .dtpreldword tls1+4 # R_MIPS_TLS_DTPREL64
30 .tpreldword tls1+4 # R_MIPS_TLS_TPREL64
32 .section .tdata,"awT",%progbits
33 .global tls1
34 tls1:
35 .word __tls_get_addr
36 .word 0