blob: 8bd137cc663ee637da9a58d11b2a603396e0ac62 [file] [log] [blame]
Chris Lattner62f565d2005-09-23 18:43:57 +00001; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1
2
3void %test(int* %P, int* %Q, bool %A, bool %B) {
4 br bool %A, label %a, label %b ;; fold the two branches into one
5a:
6 br bool %B, label %b, label %c
7b:
8 store int 123, int* %P
9 ret void
10c:
11 ret void
12}