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
|
|
|
|
|
2003-06-05 16:57:55 +00:00
|
|
|
; Testcase distilled from 256.bzip2.
|
|
|
|
|
2008-03-10 07:21:50 +00:00
|
|
|
target datalayout = "e-p:32:32"
|
2003-06-05 16:57:55 +00:00
|
|
|
|
2008-03-10 07:21:50 +00:00
|
|
|
define i32 @main() {
|
2003-06-05 16:57:55 +00:00
|
|
|
entry:
|
2008-03-10 07:21:50 +00:00
|
|
|
%X = add i32 1, -1 ; <i32> [#uses=3]
|
2003-06-05 16:57:55 +00:00
|
|
|
br label %Next
|
2008-03-10 07:21:50 +00:00
|
|
|
Next: ; preds = %entry
|
|
|
|
%A = phi i32 [ %X, %entry ] ; <i32> [#uses=0]
|
|
|
|
%B = phi i32 [ %X, %entry ] ; <i32> [#uses=0]
|
|
|
|
%C = phi i32 [ %X, %entry ] ; <i32> [#uses=1]
|
|
|
|
ret i32 %C
|
2003-06-05 16:57:55 +00:00
|
|
|
}
|
2008-03-10 07:21:50 +00:00
|
|
|
|