[PATCH] D16096: [RuntimeDyld] Provide initial tests for small code models on ELF

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 13:18:14 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL258087: [JIT] Add small-code model test for ELF. (authored by davide).

Changed prior to commit:
  http://reviews.llvm.org/D16096?vs=44579&id=45212#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16096

Files:
  llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s

Index: llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s
===================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s
@@ -0,0 +1,15 @@
+# RUN: llvm-mc -triple=x86_64-unknown-freebsd -code-model=small -relocation-model=pic -filetype=obj -o %T/testsmall_x86-64.o %s
+# RUN: llvm-rtdyld -triple=x86_64-unknown-freebsd -verify -check=%s %/T/testsmall_x86-64.o
+
+	.globl	foo
+	.align	4, 0x90
+foo:
+        retq
+
+	.globl	main
+	.align	4, 0x90
+main:
+# Test PC-rel branch.
+# rtdyld-check: decode_operand(insn1, 0) = foo - next_pc(insn1)
+insn1:
+        callq	foo


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16096.45212.patch
Type: text/x-patch
Size: 777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160118/7a539904/attachment.bin>


More information about the llvm-commits mailing list