mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
4572ce85b0
llvm-svn: 33296
14 lines
313 B
LLVM
14 lines
313 B
LLVM
; The cast in this testcase is not eliminable on a 32-bit target!
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep inttoptr
|
|
|
|
target endian = little
|
|
target pointersize = 32
|
|
|
|
declare void %foo(...)
|
|
|
|
void %test(long %X) {
|
|
%Y = cast long %X to int*
|
|
call void (...)* %foo(int* %Y)
|
|
ret void
|
|
}
|