This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Legitimize address after reload


Yep thanks,

As you guys pointed the problem was the improper handling of the
strict_p parameter.

Thanks!

2014-03-18 20:13 GMT+01:00 Richard Sandiford <rdsandiford@googlemail.com>:
> Richard Sandiford <rdsandiford@googlemail.com> writes:
>> What DJ meant below was that you should reject all pseudo registers
>> if strict_p.  I.e. REG_P (foo) should be:
>>
>>    REG_P (foo) && (!strict_p || REGNO_MODE_OK_FOR_BASE_P (foo, mode))
>
> sorry:
>
>   REG_P (foo) && (!strict_p || REGNO_MODE_OK_FOR_BASE_P (REGNO (foo), mode))
>
>> where REGNO_MODE_OK_FOR_BASE_P should only accept hard registers and
>> where "mode" is the mode of the memory being accessed.
>>
>> Thanks,
>> Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]