This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Avoiding REG+OFF memory accesses
- From: Ian Lance Taylor <iant at google dot com>
- To: Iceman <iceman_dvd at yahoo dot com>
- Cc: gcc at gnu dot org
- Date: Wed, 06 May 2009 17:01:33 -0700
- Subject: Re: Avoiding REG+OFF memory accesses
- References: <613403.87589.qm@web110415.mail.gq1.yahoo.com>
Iceman <iceman_dvd@yahoo.com> writes:
> Sorry for such trivial question, but is there any macro that can be used to avoig GCC to generate
> REG+OFF memory accesses?
> So basically to force GCC to break:
>
> (mem (plus (reg const_int)))
>
> into
>
> (set regtmp (plus (reg const_int)))
> (set (mem regtmp) reg)
>
> This w/out writing custom RTL.
Assuming this is a private port, this should happen more or less
automatically if GO_IF_LEGITIMATE_ADDRESS rejects register plus offset
addressing.
If that is not what you are looking for, I think you need to provide
some more context.
Ian