summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ExecutionEngine/test-loop.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-loop.ll b/test/ExecutionEngine/test-loop.ll
new file mode 100644
index 0000000000..b84da830e0
--- /dev/null
+++ b/test/ExecutionEngine/test-loop.ll
@@ -0,0 +1,12 @@
+
+
+int %main() {
+ br label %Loop
+Loop:
+ %I = phi int [0, %0], [%i2, %Loop]
+ %i2 = add int %I, 1
+ %C = seteq int %i2, 10
+ br bool %C, label %Out, label %Loop
+Out:
+ ret int 0
+}