mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
New testcase finally identified!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3378a5b591
commit
1ab8425c1c
21
test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll
Normal file
21
test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll
Normal file
@ -0,0 +1,21 @@
|
||||
; 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.
|
||||
|
||||
; RUN: as < %s | opt -raise -raise-start-inst=W
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user