blob: 2cd9c1b21105761f04115fefeca556080de77fce [file] [log] [blame]
Gabor Greifd01c5622008-05-20 22:07:21 +00001; RUN: llvm-as %s -f -o %t.bc
Tanya Lattner2acf9b02004-11-06 23:32:43 +00002; RUN: lli %t.bc > /dev/null
3
Chris Lattnerd7753da2003-06-05 16:57:55 +00004; Testcase distilled from 256.bzip2.
5
Tanya Lattner5f4b3552008-03-10 07:21:50 +00006target datalayout = "e-p:32:32"
Chris Lattnerd7753da2003-06-05 16:57:55 +00007
Tanya Lattner5f4b3552008-03-10 07:21:50 +00008define i32 @main() {
Chris Lattnerd7753da2003-06-05 16:57:55 +00009entry:
Tanya Lattner5f4b3552008-03-10 07:21:50 +000010 %X = add i32 1, -1 ; <i32> [#uses=3]
Chris Lattnerd7753da2003-06-05 16:57:55 +000011 br label %Next
Tanya Lattner5f4b3552008-03-10 07:21:50 +000012Next: ; preds = %entry
13 %A = phi i32 [ %X, %entry ] ; <i32> [#uses=0]
14 %B = phi i32 [ %X, %entry ] ; <i32> [#uses=0]
15 %C = phi i32 [ %X, %entry ] ; <i32> [#uses=1]
16 ret i32 %C
Chris Lattnerd7753da2003-06-05 16:57:55 +000017}
Tanya Lattner5f4b3552008-03-10 07:21:50 +000018