aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/LevelRaise/2002-11-13-PointerFunction.ll
blob: 588c77dc188d823465b64f3cb8138947951f5d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; This testcase should be able to eliminate at least one of the casts.
;
; RUN: if as < %s | opt -raise | dis | grep 'REMOVE'
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi

int %foo(sbyte * %PF) {
	%UPF = cast sbyte* %PF to uint()*
	%Ret = call uint %UPF()
	%REMOVE = cast uint %Ret to int
	ret int %REMOVE
}