2003-09-16 15:29:54 +00:00
|
|
|
; RUN: llvm-as < %s | opt -cee
|
2002-09-23 19:54:06 +00:00
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
declare void %foo(int)
|
|
|
|
|
|
|
|
void %test(int %A, bool %C) {
|
2002-09-23 20:04:54 +00:00
|
|
|
br bool %C, label %bb0, label %bb1
|
|
|
|
bb0:
|
|
|
|
br label %bb3
|
|
|
|
Unreachable:
|
|
|
|
br label %bb2
|
2002-09-23 19:54:06 +00:00
|
|
|
bb1: ;[#uses=0]
|
|
|
|
%cond212 = setgt int %A, 9 ; <bool> [#uses=1]
|
2002-09-23 20:04:54 +00:00
|
|
|
br bool %cond212, label %bb2, label %bb7
|
2002-09-23 19:54:06 +00:00
|
|
|
|
|
|
|
bb2: ;[#uses=1]
|
|
|
|
%cond = setgt int %A, 7
|
|
|
|
br bool %cond, label %bb3, label %bb7
|
|
|
|
|
|
|
|
bb3: ;[#uses=1]
|
2002-09-23 20:04:54 +00:00
|
|
|
%X = phi int [ 0, %bb0], [ 12, %bb2]
|
2002-09-23 19:54:06 +00:00
|
|
|
call void %foo( int %X )
|
|
|
|
br label %bb7
|
|
|
|
|
|
|
|
bb7: ;[#uses=2]
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|