mips 64-bit address generation is broken.
Maciej W. Rozycki
macro@ds2.pg.gda.pl
Mon Feb 18 06:39:00 GMT 2002
On 17 Feb 2002 cgd@broadcom.com wrote:
> (2) If you have 32-bit addresses, they need to behave (potentially --
> depending on the exact calculation involved) differently,
> depending on the addresses involved. Obviously, e.g. loads of
> pointers should be done as 32-bit loads, but then the subsequent
> operations (e.g. adding offsets) need to be done as 64-bit ops.
Why? An offsetted 32-bit address is 32-bit as well, so you don't want
64-bit operations. For a proper result you need to sign-extend low 32
bits of the 64-bit offset, though.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
More information about the Binutils
mailing list