2008-05-20 22:07:21 +00:00
|
|
|
; RUN: llvm-as %s -f -o %t.bc
|
2004-11-06 23:32:43 +00:00
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
2008-03-10 07:21:50 +00:00
|
|
|
target datalayout = "e-p:32:32"
|
2003-05-12 02:27:05 +00:00
|
|
|
|
2008-03-10 07:21:50 +00:00
|
|
|
define i32 @main() {
|
2003-05-12 02:27:05 +00:00
|
|
|
entry:
|
2003-05-12 02:31:48 +00:00
|
|
|
br label %endif
|
2008-03-10 07:21:50 +00:00
|
|
|
then: ; No predecessors!
|
2003-05-12 02:27:05 +00:00
|
|
|
br label %endif
|
2008-03-10 07:21:50 +00: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 02:27:05 +00:00
|
|
|
}
|
2008-03-10 07:21:50 +00:00
|
|
|
|