Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / invalid / x86-64-tlsdesc-gd.s
bloba04087bb096a576fa4a9270d7c6478dc19bdcbaa
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3 # RUN: echo '.tbss; .globl a; a:' | llvm-mc -filetype=obj -triple=x86_64 - -o %t1.o
4 # RUN: ld.lld -shared %t1.o -o %t1.so
6 ## GD to LE relaxation.
7 # RUN: not ld.lld %t.o %t1.o -o /dev/null 2>&1 | FileCheck -DINPUT=%t.o %s
8 ## GD to IE relaxation.
9 # RUN: not ld.lld %t.o %t1.so -o /dev/null 2>&1 | FileCheck -DINPUT=%t.o %s
11 # CHECK: error: [[INPUT]]:(.text+0x0): R_X86_64_GOTPC32_TLSDESC must be used in leaq x@tlsdesc(%rip), %REG
13 leaq a@tlsdesc(%rbx), %rdx
14 call *a@tlscall(%rdx)
15 movl %fs:(%rax), %eax