This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips 64-bit address generation is broken.


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        +


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