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]

Re: LO_SUM memrefs offsettable ?


On Thu, Jan 21, 1999 at 03:53:34PM -0700, Jeffrey A Law wrote:
> Well, not sure.  There are some ports where adding a small constant to the
> LO_SUM will work as expected -- the PA being one.
> 
> Basically, there's a few bits of overlap on the PA.  The "HIGH" sets the
> upper 21 bits, the LO_SUM sets the low 14 bits.  Thus we can add small
> offsets directly to the LO_SUM and not lose.

Sparc as well.  HIGH is the top 22, and the field containing
the LO_SUM is 13 bits.

> Actually, since HIGH & LO_SUM don't specify their size, I suspect that the
> port has to handle everything internally since there's no way to describe
> to the machine independent part of the compiler when the overlap is safe.

Indeed.


r~


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