Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / x86-64-relax-got-abs.s
blob9af63ac33a4b14e63b65e3af562c9a552009aebe
1 # REQUIRES: x86
3 ## Don't relax R_X86_64_GOTPCRELX to an absolute symbol.
4 ## In -no-pie mode, it can be relaxed, but it may not worth it.
6 # RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64 %s -o %t.o
7 # RUN: ld.lld %t.o -o %t.so -shared
8 # RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck %s
10 # CHECK: movq 4209(%rip), %rax
12 movq bar@GOTPCREL(%rip), %rax
13 .data
14 .global bar
15 .hidden bar
16 bar = 42