Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / invalid / i386-tlsdesc-gd.s
blob804fbf0789314ca92e60205e427158b4c720648f
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o
3 # RUN: echo '.tbss; .globl a; a:' | llvm-mc -filetype=obj -triple=i386 - -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_386_TLS_GOTDESC must be used in leal x@tlsdesc(%ebx), %eax
13 leal a@tlsdesc(%ebx), %ecx
14 call *a@tlscall(%eax)