[llvm] r267308 - [MC/ELF] Make the relaxation test more interesting.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 23 18:08:35 PDT 2016
Author: davide
Date: Sat Apr 23 20:08:35 2016
New Revision: 267308
URL: http://llvm.org/viewvc/llvm-project?rev=267308&view=rev
Log:
[MC/ELF] Make the relaxation test more interesting.
Add a case where we can't relax.
Modified:
llvm/trunk/test/MC/ELF/got-relaxed.s
Modified: llvm/trunk/test/MC/ELF/got-relaxed.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/got-relaxed.s?rev=267308&r1=267307&r2=267308&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/got-relaxed.s (original)
+++ llvm/trunk/test/MC/ELF/got-relaxed.s Sat Apr 23 20:08:35 2016
@@ -5,12 +5,14 @@
movl foo at GOT, %eax
movl foo at GOTPCREL(%rip), %eax
movq foo at GOTPCREL(%rip), %rax
+ .long zed at 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: ]
More information about the llvm-commits
mailing list