1 ; This testcase, which was distilled from a HUGE function, causes problems
2 ; because both the source and the destination of the %Y cast are converted
3 ; to a new type, which causes massive problems.
5 ; RUN: llvm-upgrade < %s | llvm-as | opt -raise -raise-start-inst=W
7 int **%test(sbyte **%S) {
12 %X = phi sbyte* [null , %BB0], [%Z, %Loop]
14 %Y = cast sbyte *%X to sbyte **
16 br bool true, label %Loop, label %Out
19 %W = cast sbyte** %Y to int**