For PR1319:
[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-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
3 ; RUN:    not grep sext.*i32
4
5 bool %eq_signed_to_small_unsigned(sbyte %SB) {
6    %Y = cast sbyte %SB to uint         ; <uint> [#uses=1]
7    %C = seteq uint %Y, 17              ; <bool> [#uses=1]
8    ret bool %C
9  }
10