summaryrefslogtreecommitdiff
path: root/llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-03-25 12:11:48 +0000
committerLang Hames <lhames@gmail.com>2015-03-25 12:11:48 +0000
commit50a0296f7af422224d05019ce21d40e7c00ca70a (patch)
treeacb805362704a086f57c4a95a7398460b425a0f7 /llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll
parent81eeec0f8ab3bfde0d154bd7e173bcf2f9e3d377 (diff)
[Orc][lli] Add a very simple Orc-based lazy JIT to lli.
This ensures that we're building and testing the CompileOnDemand layer, at least in a basic way. Currently x86-64 only, and with limited to no library calls enabled (depending on host platform). Patches welcome. ;) To enable access to the lazy JIT, this patch replaces the '-use-orcmcjit' lli option with a new option: '-jit-kind={ mcjit | orc-mcjit | orc-lazy }'. All regression tests are updated to use the new option, and one trivial test of the new lazy JIT is added.
Diffstat (limited to 'llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll')
-rw-r--r--llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll b/llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll
new file mode 100644
index 00000000000..43c26b7e1a0
--- /dev/null
+++ b/llvm/test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll
@@ -0,0 +1,11 @@
+; RUN: %lli -jit-kind=orc-mcjit %s > /dev/null
+
+; This testcase failed to work because two variable sized allocas confused the
+; local register allocator.
+
+define i32 @main(i32 %X) {
+ %A = alloca i32, i32 %X ; <i32*> [#uses=0]
+ %B = alloca float, i32 %X ; <float*> [#uses=0]
+ ret i32 0
+}
+