summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
diff options
context:
space:
mode:
authorDanil Malyshev <dmalyshev@accesssoftek.com>2012-05-17 21:07:47 +0000
committerDanil Malyshev <dmalyshev@accesssoftek.com>2012-05-17 21:07:47 +0000
commit7c5db453504e64998f1f32ca54aeb4e5b59005d2 (patch)
tree48c717667ff9a2b975a745531bddd2818078fcb8 /llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
parentdfb1097504a735e82abd973f5ac3c5d52d1a8c67 (diff)
downloadbcm5719-llvm-7c5db453504e64998f1f32ca54aeb4e5b59005d2.tar.gz
bcm5719-llvm-7c5db453504e64998f1f32ca54aeb4e5b59005d2.zip
- Added ExecutionEngine/MCJIT tests
- Added HOST_ARCH to Makefile.config.in The HOST_ARCH will be used by MCJIT tests filter, because MCJIT supported only x86 and ARM architectures now. llvm-svn: 157015
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