summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/add.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/add.ll')
-rw-r--r--test/Transforms/InstCombine/add.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index b8bab083b9..80f7402af9 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -149,3 +149,17 @@ Lab1:
Lab2:
ret int 1231231
}
+
+int %test23(bool %C, int %a) {
+entry:
+ br bool %C, label %endif, label %else
+
+else:
+ br label %endif
+
+endif:
+ %b.0 = phi int [ 0, %entry ], [ 1, %else ]
+ %tmp.4 = add int %b.0, 1
+ ret int %tmp.4
+}
+