2008-05-21 06:07:21 +08:00
|
|
|
; RUN: llvm-as %s -f -o %t.bc
|
2004-11-07 07:32:43 +08:00
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
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
|
|
|
|