From 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 15 Aug 2012 19:34:23 +0000 Subject: Vendor import of llvm trunk r161861: http://llvm.org/svn/llvm-project/llvm/trunk@161861 --- test/ExecutionEngine/MCJIT/test-constantexpr.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/ExecutionEngine/MCJIT/test-constantexpr.ll (limited to 'test/ExecutionEngine/MCJIT/test-constantexpr.ll') diff --git a/test/ExecutionEngine/MCJIT/test-constantexpr.ll b/test/ExecutionEngine/MCJIT/test-constantexpr.ll new file mode 100644 index 0000000..6b46639 --- /dev/null +++ b/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 ; [#uses=1] +@B = global i32 6 ; [#uses=1] + +define i32 @main() { + %A = or i1 false, icmp slt (i32* @A, i32* @B) ; [#uses=0] + ret i32 0 +} + -- cgit v1.1