blob: 4d5f08142e37bc260b46c76e7f44bfea0ebd22ee [file] [log] [blame]
Chris Lattner64c8d3c2002-11-13 06:54:00 +00001; This testcase should be able to eliminate at least one of the casts.
2;
Misha Brukmane78760e2003-09-16 15:29:54 +00003; RUN: llvm-as < %s | opt -raise | llvm-dis | not grep 'REMOVE'
Chris Lattner64c8d3c2002-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}