Devang Patel | 002e499 | 2006-10-19 20:59:13 +0000 | [diff] [blame] | 1 | ; The optimizer should be able to remove cast operation here. |
Reid Spencer | 3da59db | 2006-11-27 01:05:10 +0000 | [diff] [blame^] | 2 | ; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | not grep 'sext.*int' |
Devang Patel | 002e499 | 2006-10-19 20:59:13 +0000 | [diff] [blame] | 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 |