This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: mips 64-bit address generation is broken.
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: cgd at broadcom dot com
- Cc: ica2_ts at csv dot ica dot uni-stuttgart dot de, binutils at sources dot redhat dot com
- Date: Mon, 18 Feb 2002 14:52:24 +0100 (MET)
- Subject: Re: mips 64-bit address generation is broken.
- Organization: Technical University of Gdansk
- Reply-to: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
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 +