blob: a2e28d97a11d20f2ef499b81de8b810e102c3d10 [file] [log] [blame]
Reid Spencer21052cd2006-11-28 06:14:06 +00001; The cast in this testcase is not eliminable on a 32-bit target!
Reid Spencerd0e30dc2006-12-02 04:23:10 +00002; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep inttoptr
Chris Lattner05f44812003-11-03 18:33:44 +00003
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}