llvm-6502/test/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll

13 lines
255 B
LLVM
Raw Normal View History

; This crashes raise, with an cast<> failure
; RUN: as < %s | opt -raise
implementation
sbyte* %test(int* %ptr) {
%A = cast int* %ptr to sbyte *
%A = cast sbyte* %A to ulong
%B = add ulong %A, %A
%B = cast ulong %B to sbyte*
ret sbyte * %B
}