[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / x86-64-relax-offset.s
blob09f6b47b693109134a77b45cb893ee591abdb4c3
1 // REQUIRES: x86
3 /// Test we use input r_offset when deciding if R_X86_64_GOTPCRELX
4 /// relaxation is applicable.
6 // RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \
8 // RUN: %p/Inputs/x86-64-relax-offset.s -o %t2.o
9 // RUN: ld.lld %t2.o %t.o -o %t.so -shared
10 // RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck %s
12 mov foo@gotpcrel(%rip), %rax
13 nop
15 // CHECK: leaq -11(%rip), %rax
16 // CHECK-NEXT: nop