mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
2662e16e5d
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. llvm-svn: 273014
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: ]
|