New testcase for a bug in instcombine

llvm-svn: 9680
This commit is contained in:
Chris Lattner 2003-11-03 18:33:44 +00:00
parent 39c0a19894
commit 05f448173e
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
; 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
}