diff options
author | Danil Malyshev <dmalyshev@accesssoftek.com> | 2012-03-21 21:06:29 +0000 |
---|---|---|
committer | Danil Malyshev <dmalyshev@accesssoftek.com> | 2012-03-21 21:06:29 +0000 |
commit | 70186bef8b2b13ff6cc3fa23bb789c69249d0fde (patch) | |
tree | b39336ff7a1282a8d5f5e1eda0e61b00ce58f407 /llvm/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll | |
parent | c25c5e0ba23461a5d15e6eb77129fa750d28209a (diff) | |
download | bcm5719-llvm-70186bef8b2b13ff6cc3fa23bb789c69249d0fde.tar.gz bcm5719-llvm-70186bef8b2b13ff6cc3fa23bb789c69249d0fde.zip |
Re-factored RuntimeDyld.
Added ExecutionEngine/MCJIT tests.
llvm-svn: 153221
Diffstat (limited to 'llvm/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll')
-rw-r--r-- | llvm/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll b/llvm/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll new file mode 100644 index 00000000000..bd32f3037dd --- /dev/null +++ b/llvm/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll @@ -0,0 +1,21 @@ +; RUN: %lli -use-mcjit %s > /dev/null + +; +; Regression Test: EnvironmentTest.ll +; +; Description: +; This is a regression test that verifies that the JIT passes the +; environment to the main() function. +; + + +declare i32 @strlen(i8*) + +define i32 @main(i32 %argc.1, i8** %argv.1, i8** %envp.1) { + %tmp.2 = load i8** %envp.1 ; <i8*> [#uses=1] + %tmp.3 = call i32 @strlen( i8* %tmp.2 ) ; <i32> [#uses=1] + %T = icmp eq i32 %tmp.3, 0 ; <i1> [#uses=1] + %R = zext i1 %T to i32 ; <i32> [#uses=1] + ret i32 %R +} + |