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: loop.c bugfix


On Mon, 23 Oct 2000, Alan Lehotsky wrote:

> 		d = *(a+j);
> 
> 	has to generate something like
> 
> 		i4 = a;		'i4' is a base register...
> 		m4 = j;		'm4' is an index register....
> 
> 		d = dm(m4,i4);
> 
> 	because the chip doesn't treat address arithmetic as
> 	commutative!  If you loaded the values a and j into the
> 	opposite register you'd access the wrong memory.

Then maybe what you really want is a different rtx code than PLUS?


Bernd


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