[llvm] r258087 - [JIT] Add small-code model test for ELF.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 13:14:12 PST 2016
Author: davide
Date: Mon Jan 18 15:14:12 2016
New Revision: 258087
URL: http://llvm.org/viewvc/llvm-project?rev=258087&view=rev
Log:
[JIT] Add small-code model test for ELF.
The coverage is almost non-existent, hopefully more will come after this.
Differential Revision: http://reviews.llvm.org/D16096
Added:
llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s
Added: llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s?rev=258087&view=auto
==============================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s (added)
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_PIC-small-relocations.s Mon Jan 18 15:14:12 2016
@@ -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
More information about the llvm-commits
mailing list