1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
Chris Lattner d2d0cf7003 New testcase for a bug in instcombine
llvm-svn: 9680
2003-11-03 18:33:44 +00:00

14 lines
296 B
LLVM

; The cast in this testcase is not eliminatable on a 32-bit target!
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep cast
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
}