blob: 33556feabb81a2552330f89b6fa1fbc17f16099c [file] [log] [blame]
Chris Lattner41765fd2002-11-13 06:54:00 +00001; This testcase should be able to eliminate at least one of the casts.
2;
Chris Lattnerf8037d92003-06-28 23:02:20 +00003; RUN: as < %s | opt -raise | dis | not grep 'REMOVE'
Chris Lattner41765fd2002-11-13 06:54:00 +00004
5int %foo(sbyte * %PF) {
6 %UPF = cast sbyte* %PF to uint()*
7 %Ret = call uint %UPF()
8 %REMOVE = cast uint %Ret to int
9 ret int %REMOVE
10}