Re: [PATCH 4/6] nios2: Fixes for RTL checking

2017-02-24 Thread Sandra Loosemore
On 02/21/2017 12:41 PM, Sandra Loosemore wrote: On 02/21/2017 07:48 AM, Segher Boessenkool wrote: You cannot call REGNO on something that isn't a REG, and you cannot call INTVAL on something that isn't a CONST_INT. The way I fixed nios2_alternate_compare_const is admittedly a bit lame. Yeah.

Re: [PATCH 4/6] nios2: Fixes for RTL checking

2017-02-21 Thread Sandra Loosemore
On 02/21/2017 07:48 AM, Segher Boessenkool wrote: You cannot call REGNO on something that isn't a REG, and you cannot call INTVAL on something that isn't a CONST_INT. The way I fixed nios2_alternate_compare_const is admittedly a bit lame. Yeah. :-P 2017-02-21 Segher Boessenkool

Re: [PATCH 4/6] nios2: Fixes for RTL checking

2017-02-21 Thread Jeff Law
On 02/21/2017 07:48 AM, Segher Boessenkool wrote: You cannot call REGNO on something that isn't a REG, and you cannot call INTVAL on something that isn't a CONST_INT. The way I fixed nios2_alternate_compare_const is admittedly a bit lame. 2017-02-21 Segher Boessenkool * config/nios

[PATCH 4/6] nios2: Fixes for RTL checking

2017-02-21 Thread Segher Boessenkool
You cannot call REGNO on something that isn't a REG, and you cannot call INTVAL on something that isn't a CONST_INT. The way I fixed nios2_alternate_compare_const is admittedly a bit lame. 2017-02-21 Segher Boessenkool * config/nios2/nios2.c (nios2_simple_const_p): Returns false if t