1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/ELF/got-relaxed-no-relax.s
Rafael Espindola ece382b0af Fix production of R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX.
We were producing R_X86_64_GOTPCRELX for invalid instructions and
sometimes producing R_X86_64_GOTPCRELX instead of
R_X86_64_REX_GOTPCRELX.

llvm-svn: 271118
2016-05-28 15:51:38 +00:00

16 lines
485 B
ArmAsm

// RUN: llvm-mc -filetype=obj -relax-relocations -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: ]