summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/test-branch.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/ExecutionEngine/test-branch.ll')
-rw-r--r--llvm/test/ExecutionEngine/test-branch.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/test-branch.ll b/llvm/test/ExecutionEngine/test-branch.ll
new file mode 100644
index 00000000000..649319b88f4
--- /dev/null
+++ b/llvm/test/ExecutionEngine/test-branch.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: lli %t.bc > /dev/null
+
+; test unconditional branch
+int %main() {
+ br label %Test
+Test:
+ %X = seteq int 0, 4
+ br bool %X, label %Test, label %Label
+Label:
+ ret int 0
+}
OpenPOWER on IntegriCloud