summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
diff options
context:
space:
mode:
authorDanil Malyshev <dmalyshev@accesssoftek.com>2012-03-21 21:06:29 +0000
committerDanil Malyshev <dmalyshev@accesssoftek.com>2012-03-21 21:06:29 +0000
commit70186bef8b2b13ff6cc3fa23bb789c69249d0fde (patch)
treeb39336ff7a1282a8d5f5e1eda0e61b00ce58f407 /llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
parentc25c5e0ba23461a5d15e6eb77129fa750d28209a (diff)
downloadbcm5719-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/test-constantexpr.ll')
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll b/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
new file mode 100644
index 00000000000..6b46639c51f
--- /dev/null
+++ b/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
@@ -0,0 +1,12 @@
+; RUN: %lli -use-mcjit %s > /dev/null
+
+; This tests to make sure that we can evaluate weird constant expressions
+
+@A = global i32 5 ; <i32*> [#uses=1]
+@B = global i32 6 ; <i32*> [#uses=1]
+
+define i32 @main() {
+ %A = or i1 false, icmp slt (i32* @A, i32* @B) ; <i1> [#uses=0]
+ ret i32 0
+}
+
OpenPOWER on IntegriCloud