1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/ELF/got-relaxed-no-relax.s
Rafael Espindola 2662e16e5d Change the default of -relax-relocations.
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
2016-06-17 17:04:56 +00:00

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: ]