blob: 7e045d85411f1555fc532905db0d0cbe9b8aff0d [file] [log] [blame]
; The cast in this testcase is not eliminatable on a 32-bit target!
; RUN: llvm-as < %s | 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
}