summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/IntPtrCast.ll
blob: 9f509b6fbc0ac763e1c960adf1390130f5997521 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-upgrade < %s | llvm-as | 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
}