summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-10-04 00:49:38 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-10-04 00:49:38 +0000
commit1b2cfb6495c18d209f9b945283b789ece3958dc3 (patch)
treeadfc3593fbbd22b5a59f4c3738c065493e542e9a /llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
parent6feda287565d14b5b6ee71c22c983a9f8bf90f57 (diff)
downloadbcm5719-llvm-1b2cfb6495c18d209f9b945283b789ece3958dc3.tar.gz
bcm5719-llvm-1b2cfb6495c18d209f9b945283b789ece3958dc3.zip
Adding support and tests for multiple module handling in lli
llvm-svn: 191938
Diffstat (limited to 'llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll')
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll b/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
new file mode 100644
index 00000000000..1e55d2d6a28
--- /dev/null
+++ b/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
@@ -0,0 +1,13 @@
+; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
+
+declare i32 @FB()
+
+define i32 @FA() {
+ ret i32 0
+}
+
+define i32 @main() {
+ %r = call i32 @FB( ) ; <i32> [#uses=1]
+ ret i32 %r
+}
+
OpenPOWER on IntegriCloud