blob: 051add8c0bdc098e0e6fd55de161446749e36195 [file] [log] [blame]
Chris Lattner05f44812003-11-03 18:33:44 +00001; The cast in this testcase is not eliminatable on a 32-bit target!
2; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep cast
3
4target endian = little
5target pointersize = 32
6
7declare void %foo(...)
8
9void %test(long %X) {
10 %Y = cast long %X to int*
11 call void (...)* %foo(int* %Y)
12 ret void
13}