llvm-6502/test/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll
2006-12-02 04:23:10 +00:00

13 lines
275 B
LLVM

; This crashes raise, with an cast<> failure
; RUN: llvm-upgrade < %s | llvm-as | 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
}