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: Avoiding REG+OFF memory accesses


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


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