It is OK to remove extra cast if operation is EQ/NE even though source
[oota-llvm.git] / test / Transforms / InstCombine / 2006-10-19-SignedToUnsignedCastAndConst-2.ll
1 ; The optimizer should be able to remove cast operation here.
2 ; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | not grep 'cast.*int'
3
4 bool %eq_signed_to_small_unsigned(sbyte %SB) {
5    %Y = cast sbyte %SB to uint         ; <uint> [#uses=1]
6    %C = seteq uint %Y, 17              ; <bool> [#uses=1]
7    ret bool %C
8  }
9