How to legitimize the reload address?

Ian Lance Taylor iant@google.com
Tue May 20 17:11:00 GMT 2008


"Mohamed Shafi" <shafitvm@gmail.com> writes:

> For the 16 bit target that i am currently porting can have only
> positive offsets less than 0x100. (unsigned 8 bit) for offset
> addressing mode.

I would expect reload to be able to handle this kind of thing anyhow,
assuming you define GO_IF_LEGITIMATE_ADDRESS correctly.  reload should
automatically try loading an out of range offset into a register.

Ian



More information about the Gcc mailing list