aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/phi.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/phi.ll b/test/Transforms/InstCombine/phi.ll
index a15d341e3b..830c44f624 100644
--- a/test/Transforms/InstCombine/phi.ll
+++ b/test/Transforms/InstCombine/phi.ll
@@ -53,3 +53,15 @@ Exit:
ret int %B
}
+uint %test6(int %A, bool %b) {
+BB0:
+ %X = cast int %A to uint
+ br bool %b, label %BB1, label %BB2
+BB1:
+ %Y = cast int %A to uint
+ br label %BB2
+BB2:
+ %B = phi uint [%X, %BB0], [%Y, %BB1] ;; Suck casts into phi
+ ret uint %B
+}
+