[PATCH] MIPS gas: 64 bit aware rol/ror macros

cgd@broadcom.com cgd@broadcom.com
Tue May 14 10:55:00 GMT 2002


At Tue, 14 May 2002 09:02:41 +0200, Thiemo Seufer wrote:
> > oh, that one's easy:
> > 
> > 	lw	$2, addr
> > 	ror	$3, $2, 1
> > 
> > what is bit 31 of $3?
> 
> Hm, rotating an address to a misaligned value? Not the most convincing
> exmaple, I assume. :-)

uh, address, like, any of the types of addresses you'd otherwise give
to 'lw'.  like, offset from GP of a 32-bit small data value.  8-)


> It would be as useful as "rotate half" or "rotate byte".
> Ok, dro[lr] helps for compatibility, so I'll change my patch.

And as 'rotate word'!



chris



More information about the Binutils mailing list