summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
blob: 5bb2fe12b6f9b11fba8fc5c164aa63eca25020ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; The cast in this testcase is not eliminable on a 32-bit target!
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep inttoptr

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
}