blob: f7925e138d2e44d8227b7f25ea36ac3f5867c92f [file] [log] [blame]
Devang Patel002e4992006-10-19 20:59:13 +00001; The optimizer should be able to remove cast operation here.
Reid Spencer3da59db2006-11-27 01:05:10 +00002; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | not grep 'sext.*int'
Devang Patel002e4992006-10-19 20:59:13 +00003
4bool %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