Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / SCCP / 2003-08-26-InvokeHandling.ll
1 ; The PHI cannot be eliminated from this testcase, SCCP is mishandling invoke's!
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep phi
3
4 declare void %foo()
5 int %test(bool %cond) {
6 Entry:
7         br bool %cond, label %Inv, label %Cont
8 Inv:
9         invoke void %foo() to label %Ok except label %Cont
10 Ok:
11         br label %Cont
12 Cont:
13         %X = phi int [0, %Entry], [1,%Ok], [0, %Inv]
14         ret int %X
15 }