Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / i386-tls-le-undef.s
blob7c0d70466791817af8e7b56c1c4bce8080da5859
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o
3 # RUN: ld.lld --noinhibit-exec %t.o -o %t 2>&1
4 # RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck %s
6 ## Undefined TLS symbols resolve to 0.
7 ## In --noinhibit-exec mode, a non-weak undefined symbol is not an error.
9 # CHECK: subl $0, %eax
10 # CHECK: subl $0, %eax
12 .weak weak_undef
13 movl %gs:0, %eax
14 subl $weak_undef@tpoff,%eax
15 movl %gs:0, %eax
16 subl $undef@tpoff,%eax