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-branch.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/ExecutionEngine/MCJIT/test-branch.ll (limited to 'test/ExecutionEngine/MCJIT/test-branch.ll') diff --git a/test/ExecutionEngine/MCJIT/test-branch.ll b/test/ExecutionEngine/MCJIT/test-branch.ll new file mode 100644 index 0000000..702c110 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/test-branch.ll @@ -0,0 +1,12 @@ +; RUN: %lli -use-mcjit %s > /dev/null + +; test unconditional branch +define i32 @main() { + br label %Test +Test: ; preds = %Test, %0 + %X = icmp eq i32 0, 4 ; [#uses=1] + br i1 %X, label %Test, label %Label +Label: ; preds = %Test + ret i32 0 +} + -- cgit v1.1