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: find_reloads_address_1 question


> However, if there is a canonical form for addresses that reload
> depends upon (across all architectures), then I guess combine
> would be at fault here for not properly canonifying addresses
> after substing into them ...  I'll reexamine my test case and
> try to find out what's going on here.

Yes.  Constants should be combined, and come last in a plus.
So in this case, combine should have generated an address like:
(plus (plus (reg) (reg)) (const))


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