1// REQUIRES: x86 2 3/// Test we use input r_offset when deciding if R_X86_64_GOTPCRELX 4/// relaxation is applicable. 5 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 11 12 mov foo@gotpcrel(%rip), %rax 13 nop 14 15// CHECK: leaq -11(%rip), %rax 16// CHECK-NEXT: nop 17