While working on the pool allocator, I noticed that basicaa is failing a scary
[oota-llvm.git] / test / ExecutionEngine / test-phi.ll
1 ; test phi node
2
3 %Y = global int 6
4
5 void %blah(int *%X) {
6         br label %T
7 T:
8         phi int* [%X, %0], [%Y, %Dead]
9         ret void
10 Dead:
11         br label %T
12 }
13
14 int %test(bool %C) {
15         br bool %C, label %T, label %T
16 T:
17         %X = phi int [123, %0], [123, %0]
18         ret int %X
19 }
20
21 int %main() {
22         br label %Test
23 Test:
24         %X = phi int [0, %0], [%Y, %Dead]
25         ret int %X
26 Dead:
27         %Y = shr int 12, ubyte 4
28         br label %Test
29 }