summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-09-09 03:14:29 +0000
committerLang Hames <lhames@gmail.com>2015-09-09 03:14:29 +0000
commit856e4767ffde5eab25d1dbef45cde833eb14456e (patch)
treed9c721374765b5097647a403989f9c0bf4bc4e4e /llvm/test/ExecutionEngine
parente590b33bf88561c1a5b9ae76823562b16934d2cd (diff)
downloadbcm5719-llvm-856e4767ffde5eab25d1dbef45cde833eb14456e.tar.gz
bcm5719-llvm-856e4767ffde5eab25d1dbef45cde833eb14456e.zip
[RuntimeDyld] Add support for MachO x86_64 SUBTRACTOR relocation.
llvm-svn: 247119
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s b/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s
index 2ef8cc439df..d47e12eccf0 100644
--- a/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s
+++ b/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s
@@ -57,4 +57,17 @@ z1:
z2:
.quad ds2
+# Test subtractor relocations.
+# rtdyld-check: *{8}z3 = z4 - z5
+z3:
+ .quad z4 - z5
+
+ .section __DATA,_tmp1
+z4:
+ .byte 1
+
+ .section __DATA,_tmp2
+z5:
+ .byte 1
+
.subsections_via_symbols
OpenPOWER on IntegriCloud