Additional ExecutionEngine tests, as part of bringing up the MCJIT on ELF

implementation.
Currently lit still executes ExecutionEngine tests with JIT (not MCJIT) by
default. MCJIT tests can be executed manually by calling llvm-lit with
--param jit_impl=mcjit



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Bendersky
2012-01-17 09:14:54 +00:00
parent 0b94b5f52b
commit a7f99f28a7
7 changed files with 244 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
; RUN: %lli %s > /dev/null
; XFAIL: arm
; XFAIL: mcjit
define i32 @_Z14func_exit_codev() nounwind uwtable {
entry:
ret i32 0
}
define i32 @main() nounwind uwtable {
entry:
%retval = alloca i32, align 4
store i32 0, i32* %retval
%call = call i32 @_Z14func_exit_codev()
ret i32 %call
}