1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[MC/ELF] Make the relaxation test more interesting.

Add a case where we can't relax.

llvm-svn: 267308
This commit is contained in:
Davide Italiano 2016-04-24 01:08:35 +00:00
parent 734b1e3ae5
commit 0fa7ff1c0f

View File

@ -5,12 +5,14 @@
movl foo@GOT, %eax
movl foo@GOTPCREL(%rip), %eax
movq foo@GOTPCREL(%rip), %rax
.long zed@GOTPCREL
// CHECK: Relocations [
// CHECK: Section ({{[^ ]+}}) .rela.text {
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_GOT32 foo 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_GOTPCRELX foo 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_REX_GOTPCRELX foo 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_GOTPCREL zed 0x{{[^ ]+}}
// CHECK-NEXT: }
// CHECK-NEXT: ]