summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-16 05:06:36 +0000
committerChris Lattner <sabre@nondot.org>2004-02-16 05:06:36 +0000
commitd8bed768ab0ec2491484aaa700c436672d3d570f (patch)
treebcaacccf5289a3b003b2915d80a4047084215b49 /test
parent26ca7e145e076efb3dd5085099289347295993fe (diff)
downloadllvm-d8bed768ab0ec2491484aaa700c436672d3d570f.tar.gz
llvm-d8bed768ab0ec2491484aaa700c436672d3d570f.tar.bz2
llvm-d8bed768ab0ec2491484aaa700c436672d3d570f.tar.xz
A new testcase for a situation that occurs in 181.mcf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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 e8eea8f81c..96e9e0ba39 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
+}
+