aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll
blob: 64c08a24164dbb03e85b290a1eb5a6915b63024f (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | 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
}