Re: [7/8] BITS_BIG_ENDIAN vs. (zero_extract (const_int ...) ...)

2012-10-30 Thread Eric Botcazou
> gcc/ > * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume > that zero_extracts of const_ints are doing word-sized extractions. This looks plausible. -- Eric Botcazou

[7/8] BITS_BIG_ENDIAN vs. (zero_extract (const_int ...) ...)

2012-10-30 Thread Richard Sandiford
Combine tries to optimise comparisons involving: (zero_extract (const_int X) (const_int 1) (var Y)) and so on BITS_BIG_ENDIAN targets it tries gamely to work out what mode X actually has. At the moment it tries reading the mode from operand 1 of extzv, but