Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / x86-64-reloc-got-load.s
blob2a428045184f8e8fbf3a25241f5f87b958484124
1 # REQUIRES: x86
3 ## Check that we perform relaxation for GOT_LOAD relocations to defined symbols.
4 ## Note: GOT_LOAD relocations to dylib symbols are already tested in dylink.s.
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
7 # RUN: %lld -o %t %t.o
8 # RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t | FileCheck %s
9 # CHECK: leaq [[#]](%rip), %rax ## {{.*}} <_foo>
11 .globl _main, _foo
13 _main:
14 movq _foo@GOTPCREL(%rip), %rax
15 ret
17 _foo:
18 .space 0