On 11/09/11 18:12, Jakub Jelinek wrote: > So here is hopefully last iteration of that. > > Negative constants that trunc_int_for_mode to the same value > are IMHO just fine too, similarly for ZERO_EXTEND 0xffff for HImode > should be fine too. On the other side, if mode is DImode and > outer mode of ZERO_EXTEND is TImode, if const_op had the highest bit > set, it would mean it is considered to be 65 1s followed by 63 other > bits. It is hard to construct testcases for these (except for > the failure), because apparently the FE is already narrowing the comparisons > if the constant is in range. > > Ok for trunk if this bootstraps/regtests?
Ok. > Can you please look at the simplify_set hunk? Thanks. That could safely just use the same kind of change, couldn't it? Preapproved as well. Bernd