diff options
Diffstat (limited to 'test/ExecutionEngine/test-branch.ll')
-rw-r--r-- | test/ExecutionEngine/test-branch.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-branch.ll b/test/ExecutionEngine/test-branch.ll new file mode 100644 index 0000000..649319b --- /dev/null +++ b/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 +} |