[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / relax.s
blobd2941e2f173f30e514ba44b2c5ae58b8a95b3432
1 // REQUIRES: x86-registered-target
2 // RUN: %clang -### -c -integrated-as -Wa,--mrelax-relocations=yes %s 2>&1 | FileCheck %s
4 // CHECK: "-cc1as"
5 // CHECK: "--mrelax-relocations"
7 // RUN: %clang -cc1as -triple x86_64-pc-linux --mrelax-relocations %s -o %t -filetype obj
8 // RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s
10 // REL: R_X86_64_REX_GOTPCRELX foo
12 movq foo@GOTPCREL(%rip), %rax