03b66c43a1ced7b835366751ea23ae10720572b4
[oota-llvm.git] / test / ExecutionEngine / 2003-06-05-PHIBug.ll
1 ; RUN: %lli %s > /dev/null
2
3 ; Testcase distilled from 256.bzip2.
4
5 target datalayout = "e-p:32:32"
6
7 define i32 @main() {
8 entry:
9         %X = add i32 1, -1              ; <i32> [#uses=3]
10         br label %Next
11 Next:           ; preds = %entry
12         %A = phi i32 [ %X, %entry ]             ; <i32> [#uses=0]
13         %B = phi i32 [ %X, %entry ]             ; <i32> [#uses=0]
14         %C = phi i32 [ %X, %entry ]             ; <i32> [#uses=1]
15         ret i32 %C
16 }
17