mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
3be11e69ac
llvm-mc is a developer tool, as such it make sense for it to use new features by default. This doesn't change the user facing clang, which still defaults to non relaxable relocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273014 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
466 B
ArmAsm
16 lines
466 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s
|
|
|
|
// these should not produce relaxable relocations
|
|
|
|
movq foo@GOT, %rax
|
|
mulq foo@GOTPCREL(%rip)
|
|
.long foo@GOTPCREL
|
|
|
|
// CHECK: Relocations [
|
|
// CHECK: Section ({{.*}}) .rela.text {
|
|
// CHECK-NEXT: R_X86_64_GOT32 foo
|
|
// CHECK-NEXT: R_X86_64_GOTPCREL foo
|
|
// CHECK-NEXT: R_X86_64_GOTPCREL foo
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: ]
|