Use the llvm-upgrade program to upgrade llvm assembly.
[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 | not grep 'sext.*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