[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / tls_suffix_sorting.s
blobd426ac1fe1cdf0d8702374b504fdd0fd284f604f
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %S/Inputs/tlssup.s -filetype=obj -o %t.tlssup.o
4 # RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.main.o
6 # RUN: lld-link -lldmingw -entry:main %t.main.o %t.tlssup.o -out:%t.exe
7 # RUN: llvm-objdump -s %t.exe | FileCheck %s
9 # Check that .tls$$foo is sorted after the start marker (aa) and before the
10 # end marker (ff).
12 # CHECK: Contents of section .tls:
13 # CHECK: 140004000 aabbff
15 .text
16 .globl main
17 main:
18 movl _tls_index(%rip), %eax
19 movq %gs:88, %rcx
20 movq (%rcx,%rax,8), %rax
21 movb foo@SECREL32(%rax), %al
22 ret
24 .section .tls$$foo,"dw"
25 .linkonce discard
26 foo:
27 .byte 0xbb