summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-09-11 22:43:36 +0000
committerLang Hames <lhames@gmail.com>2014-09-11 22:43:36 +0000
commit691a21ce5aba553c6c67b9282ac5e91ad54037d4 (patch)
tree746280101992f23acbd4221f228158ae9f9b5dee /llvm
parentd40077839be53969a9ff790bd78b16894c85ba48 (diff)
downloadbcm5719-llvm-691a21ce5aba553c6c67b9282ac5e91ad54037d4.tar.gz
bcm5719-llvm-691a21ce5aba553c6c67b9282ac5e91ad54037d4.zip
[MCJIT] Make sure we test ARM BR24 relocations with both internal and external
symbols. Previously we have only been testing these relocations with external symbols. <rdar://problem/18308413> llvm-svn: 217635
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s b/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
index 6cad361ab23..7ff3a897576 100644
--- a/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
+++ b/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
@@ -17,8 +17,8 @@ insn2:
nextPC:
add r1, r0, r0
-# Check stub generation by referencing a common symbol, 'baz'. Check both the
-# Content of the stub, and the reference to the stub.
+# Check stub generation for external symbols by referencing a common symbol, 'baz'.
+# Check both the content of the stub, and the reference to the stub.
# Stub should contain '0xe51ff004' (ldr pc, [pc, #-4]), followed by the target.
#
# rtdyld-check: *{4}(stub_addr(foo.o, __text, baz)) = 0xe51ff004
@@ -27,6 +27,11 @@ nextPC:
# rtdyld-check: decode_operand(insn3, 0) = stub_addr(foo.o, __text, baz) - (insn3 + 8)
insn3:
bl baz
+
+# Check stub generation for internal symbols by referencing 'bar'.
+# rtdyld-check: *{4}(stub_addr(foo.o, __text, bar) + 4) = bar
+insn4:
+ bl bar
bx lr
# Add 'aaa' to the common symbols to make sure 'baz' isn't at the start of the
OpenPOWER on IntegriCloud