Re: [55/77] Use scalar_int_mode in simplify_const_unary_operation

2017-08-24 Thread Jeff Law
On 07/13/2017 02:58 AM, Richard Sandiford wrote: > The main scalar integer block in simplify_const_unary_operation > had the condition: > > if (CONST_SCALAR_INT_P (op) && width > 0) > > where "width > 0" was a roundabout way of testing != VOIDmode. > This patch replaces it with a check for a sc

[55/77] Use scalar_int_mode in simplify_const_unary_operation

2017-07-13 Thread Richard Sandiford
The main scalar integer block in simplify_const_unary_operation had the condition: if (CONST_SCALAR_INT_P (op) && width > 0) where "width > 0" was a roundabout way of testing != VOIDmode. This patch replaces it with a check for a scalar_int_mode instead. It also uses the number of bits in the i