2010-11-13 08:28:01 +08:00
|
|
|
; RUN: lli %s > /dev/null
|
2004-11-07 07:32:43 +08:00
|
|
|
|
2008-03-10 15:21:50 +08:00
|
|
|
target datalayout = "e-p:32:32"
|
2003-05-12 10:27:05 +08:00
|
|
|
|
2008-03-10 15:21:50 +08:00
|
|
|
define i32 @main() {
|
2003-05-12 10:27:05 +08:00
|
|
|
entry:
|
2003-05-12 10:31:48 +08:00
|
|
|
br label %endif
|
2008-03-10 15:21:50 +08:00
|
|
|
then: ; No predecessors!
|
2003-05-12 10:27:05 +08:00
|
|
|
br label %endif
|
2008-03-10 15:21:50 +08:00
|
|
|
endif: ; preds = %then, %entry
|
|
|
|
%x = phi i32 [ 4, %entry ], [ 27, %then ] ; <i32> [#uses=0]
|
|
|
|
%result = phi i32 [ 32, %then ], [ 0, %entry ] ; <i32> [#uses=0]
|
|
|
|
ret i32 0
|
2003-05-12 10:27:05 +08:00
|
|
|
}
|
2008-03-10 15:21:50 +08:00
|
|
|
|