summaryrefslogtreecommitdiff
path: root/test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll
blob: 6a2bc50ef24e473ae60112bd95a15ec0d14a4bed (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -raise

int* %test(int* %P, int* %Q) {
	%P = cast int* %P to ulong
	%Q = cast int* %Q to ulong
	%V = add ulong %P, %Q
	%V = cast ulong %V to int*
	ret int* %V
}