mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
563ba88392
llvm-svn: 8558
13 lines
260 B
LLVM
13 lines
260 B
LLVM
; This crashes raise, with an cast<> failure
|
|
|
|
; RUN: llvm-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
|
|
}
|