new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-09-23 18:43:57 +00:00
parent 055dc102e9
commit 9a82a3ccac

View File

@ -0,0 +1,12 @@
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1
void %test(int* %P, int* %Q, bool %A, bool %B) {
br bool %A, label %a, label %b ;; fold the two branches into one
a:
br bool %B, label %b, label %c
b:
store int 123, int* %P
ret void
c:
ret void
}