1*67e74705SXin Li// REQUIRES: x86-registered-target 2*67e74705SXin Li// RUN: %clang -### -c -integrated-as -Wa,--mrelax-relocations=yes %s 2>&1 | FileCheck %s 3*67e74705SXin Li 4*67e74705SXin Li// CHECK: "-cc1as" 5*67e74705SXin Li// CHECK: "--mrelax-relocations" 6*67e74705SXin Li 7*67e74705SXin Li// RUN: %clang -cc1as -triple x86_64-pc-linux --mrelax-relocations %s -o %t -filetype obj 8*67e74705SXin Li// RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s 9*67e74705SXin Li 10*67e74705SXin Li// REL: R_X86_64_REX_GOTPCRELX foo 11*67e74705SXin Li 12*67e74705SXin Li movq foo@GOTPCREL(%rip), %rax 13