comparison clang/test/Driver/relax.s @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
237:c80f45b162ad 252:1f2b6ac9f198
1 // REQUIRES: x86-registered-target 1 // REQUIRES: x86-registered-target
2 // RUN: %clang -### -c -integrated-as -Wa,--mrelax-relocations=yes %s 2>&1 | FileCheck %s 2 // RUN: %clang -### -c -target x86_64-pc-linux -integrated-as -Wa,--mrelax-relocations=no %s 2>&1 | FileCheck %s
3 3
4 // CHECK: "-cc1as" 4 // CHECK: "-cc1as"
5 // CHECK: "--mrelax-relocations" 5 // CHECK: "-mrelax-relocations=no"
6 6
7 // RUN: %clang -cc1as -triple x86_64-pc-linux --mrelax-relocations %s -o %t -filetype obj 7 // RUN: %clang -cc1as -triple x86_64-pc-linux %s -o %t -filetype obj
8 // RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s 8 // RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s
9 9
10 // REL: R_X86_64_REX_GOTPCRELX foo 10 // REL: R_X86_64_REX_GOTPCRELX foo
11 11
12 movq foo@GOTPCREL(%rip), %rax 12 movq foo@GOTPCREL(%rip), %rax