This is the mail archive of the gcc-patches@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: [PATCH]Construct canonical scaled address expression in IVOPT


On 24/09/13 11:12, Richard Biener wrote:
> Or even [reg*scale] (not sure about that).  But yes, at least reg*scale + offset
> and reg*scale + reg.

I can't conceive of a realistic case where one would want to scale the
base address.  Scaling the offset is fine, but never the base.  So
reg*scale+offset seems meaningless.

Base + Offset * Scale on the other hand makes much more sense.

Of course, this is all about terminology, so if you regard an immediate,
such as a symbol as an offset, then perhaps you have something close to
the original term, but I think then you've inverted things, since your
symbol is really the base, not the offset.

R.


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