[llvm] r212780 - [RuntimeDyld] Replace a crufty old ARM RuntimeDyld test with a new one that uses
Lang Hames
lhames at gmail.com
Thu Jul 10 16:29:11 PDT 2014
Author: lhames
Date: Thu Jul 10 18:29:11 2014
New Revision: 212780
URL: http://llvm.org/viewvc/llvm-project?rev=212780&view=rev
Log:
[RuntimeDyld] Replace a crufty old ARM RuntimeDyld test with a new one that uses
RuntimeDyldChecker.
This allows us to remove one of the six remaining object files in the LLVM
source tree.
Added:
llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/
llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg
Removed:
llvm/trunk/test/ExecutionEngine/RuntimeDyld/Inputs/
llvm/trunk/test/ExecutionEngine/RuntimeDyld/macho_relocations.test
Added: llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s?rev=212780&view=auto
==============================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s (added)
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s Thu Jul 10 18:29:11 2014
@@ -0,0 +1,27 @@
+# RUN: llvm-mc -triple=armv7s-apple-ios7.0.0 -relocation-model=pic -filetype=obj -o %t.o %s
+# RUN: llvm-rtdyld -triple=armv7s-apple-ios7.0.0 -verify -check=%s %t.o
+# RUN: rm %t.o
+
+ .syntax unified
+ .section __TEXT,__text,regular,pure_instructions
+ .globl bar
+ .align 2
+bar:
+# Check lower 16-bits of section difference relocation
+# rtdyld-check: decode_operand(insn1, 1) = (foo-(nextPC+8))[15:0]
+insn1:
+ movw r0, :lower16:(foo-(nextPC+8))
+# Check upper 16-bits of section difference relocation
+# rtdyld-check: decode_operand(insn2, 2) = (foo-(nextPC+8))[31:16]
+insn2:
+ movt r0, :upper16:(foo-(nextPC+8))
+nextPC:
+ add r0, pc, r0
+ bx lr
+
+ .globl foo
+ .align 2
+foo:
+ bx lr
+
+.subsections_via_symbols
Added: llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg?rev=212780&view=auto
==============================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg (added)
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg Thu Jul 10 18:29:11 2014
@@ -0,0 +1,3 @@
+if not 'ARM' in config.root.targets:
+ config.unsupported = True
+
Removed: llvm/trunk/test/ExecutionEngine/RuntimeDyld/macho_relocations.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/RuntimeDyld/macho_relocations.test?rev=212779&view=auto
==============================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/macho_relocations.test (original)
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/macho_relocations.test (removed)
@@ -1 +0,0 @@
-RUN: llvm-rtdyld -printline %p/Inputs/arm_secdiff_reloc.o
More information about the llvm-commits
mailing list