2002-07-17 02:36:02 +00:00
|
|
|
; This testcase, which was distilled from a HUGE function, causes problems
|
|
|
|
; because both the source and the destination of the %Y cast are converted
|
|
|
|
; to a new type, which causes massive problems.
|
|
|
|
|
2003-09-16 15:29:54 +00:00
|
|
|
; RUN: llvm-as < %s | opt -raise -raise-start-inst=W
|
2002-07-17 02:36:02 +00:00
|
|
|
|
|
|
|
int **%test(sbyte **%S) {
|
|
|
|
BB0:
|
|
|
|
br label %Loop
|
|
|
|
|
|
|
|
Loop:
|
|
|
|
%X = phi sbyte* [null , %BB0], [%Z, %Loop]
|
|
|
|
|
|
|
|
%Y = cast sbyte *%X to sbyte **
|
|
|
|
%Z = load sbyte** %Y
|
|
|
|
br bool true, label %Loop, label %Out
|
|
|
|
|
|
|
|
Out:
|
|
|
|
%W = cast sbyte** %Y to int**
|
|
|
|
ret int** %W
|
|
|
|
}
|