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  <seg...@kernel.crashing.org>

        * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
        argument isn't a CONST_INT.
        (nios2_alternate_compare_const): Set *alt_code and *alt_op to code
        and op if op is not a CONST_INT.
        (nios2_valid_compare_const_p): Return false if the argument isn't
        a CONST_INT.
        (ldstwm_operation_p): Return false if first_base is not a REG or
        if first_offset is not a CONST_INT.
OK.
jeff

Reply via email to