Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / x86-64-tls-gd-got.s
blob116ff216a15ec7964136ced6e1c5eb0f7e1510db
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/x86-64-tls-gd-got.s -o %t2.o
4 # RUN: ld.lld %t1.o %t2.o -o %t
5 # RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck %s
7 .globl _start
8 _start:
9 .byte 0x66
10 leaq bar@tlsgd(%rip), %rdi
11 .byte 0x66
12 rex64
13 call *__tls_get_addr@GOTPCREL(%rip)
14 ret
16 // CHECK: <_start>:
17 // CHECK-NEXT: movq %fs:0, %rax
18 // CHECK-NEXT: leaq -4(%rax), %rax
19 // CHECK-NEXT: retq