2008-03-01 09:15:35 +00:00
|
|
|
; RUN: llvm-as < %s | opt -condprop | llvm-dis | \
|
2007-04-15 06:53:51 +00:00
|
|
|
; RUN: not grep {br label}
|
2005-04-15 19:24:36 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
|
|
|
|
define i32 @test(i1 %C) {
|
|
|
|
br i1 %C, label %T1, label %F1
|
|
|
|
|
|
|
|
T1: ; preds = %0
|
|
|
|
br label %Cont
|
|
|
|
|
|
|
|
F1: ; preds = %0
|
|
|
|
br label %Cont
|
|
|
|
|
|
|
|
Cont: ; preds = %F1, %T1
|
|
|
|
%C2 = phi i1 [ false, %F1 ], [ true, %T1 ] ; <i1> [#uses=1]
|
|
|
|
br i1 %C2, label %T2, label %F2
|
|
|
|
|
|
|
|
T2: ; preds = %Cont
|
|
|
|
call void @bar( )
|
|
|
|
ret i32 17
|
|
|
|
|
|
|
|
F2: ; preds = %Cont
|
|
|
|
ret i32 1
|
2005-04-15 19:24:36 +00:00
|
|
|
}
|
2008-03-01 09:15:35 +00:00
|
|
|
|
|
|
|
declare void @bar()
|
|
|
|
|