diff --git a/test/Transforms/InstCombine/phi.ll b/test/Transforms/InstCombine/phi.ll index e8eea8f81c9..96e9e0ba39c 100644 --- a/test/Transforms/InstCombine/phi.ll +++ b/test/Transforms/InstCombine/phi.ll @@ -43,3 +43,15 @@ L2: br label %Loop } +bool %test4(bool %A) { + br bool %A, label %BB1, label %BB2 +BB1: + br label %Ret +BB2: + br label %Ret +Ret: + %B = phi int [1000, %BB1], [123, %BB2] + %C = cast int %B to bool + ret bool %C +} +