blob: 5bb2fe12b6f9b11fba8fc5c164aa63eca25020ea [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 Spencer6c38f0b2006-11-27 01:05:10 +00002; RUN: llvm-as < %s | 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}