aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/IntPtrCast.ll
blob: c3cc96728de336df96d0c8a1600655cd11968e8c (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
target pointersize = 32

int *%test(int *%P) {
	%V = cast int* %P to int
	%P2 = cast int %V to int*
	ret int* %P2
}