1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-pc-linux %s \ 3// RUN: -o %t.o 4// RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-pc-linux \ 5// RUN: %p/Inputs/x86-64-relax-offset.s -o %t2.o 6// RUN: ld.lld %t2.o %t.o -o %t.so -shared 7// RUN: llvm-objdump -d %t.so | FileCheck %s 8 9 mov foo@gotpcrel(%rip), %rax 10 nop 11 12// CHECK: 1004: {{.*}} leaq -11(%rip), %rax 13// CHECK-NEXT: 100b: {{.*}} nop 14