Re: [43/77] Use scalar_int_mode in simplify_comparison

2017-08-23 Thread Jeff Law
On 07/13/2017 02:53 AM, Richard Sandiford wrote: > The main loop of simplify_comparison starts with: > > if (GET_MODE_CLASS (mode) != MODE_INT > && ! (mode == VOIDmode > && (GET_CODE (op0) == COMPARE || COMPARISON_P (op0 > break; > > So VOIDmode is only

[43/77] Use scalar_int_mode in simplify_comparison

2017-07-13 Thread Richard Sandiford
The main loop of simplify_comparison starts with: if (GET_MODE_CLASS (mode) != MODE_INT && ! (mode == VOIDmode && (GET_CODE (op0) == COMPARE || COMPARISON_P (op0 break; So VOIDmode is only acceptable when comparing a COMPARE, EQ, NE, etc. operand agains