From: gbcacm@ccs.neu.edu (Peter Sherwood)
Subject: Re: Alpha: sign extend long
Date: 1995/07/25 [thread overview]
Message-ID: <3v315o$m2k@camelot.ccs.neu.edu> (raw)
In-Reply-To: 3usqta$3he@vixen.cso.uiuc.edu
Steve Peltz (peltz@cerl.uiuc.edu) wrote:
: It looks to me as if it would be faster to sign-extend a longword by
: doing a "addl $x, $31, $y" instead of the sequence used in at least
: the "intended sequence for loading and sign-extending a longword from
: unaligned address", which is to do "sll $x, #32, $y", then "sra $y, #32, $y".
ADDL R31,Rx,Ry is given in Appendix A of the Alpha Architecture Reference
Manual as the code for the pseudo-op SEXTL (longword sign-extension of Rx
storing results in Ry).
-----------------------------------------------------------------------------
Peter Sherwood
(617) 332-8880 (voice)
(617) 969-2101 (fax)
gbcacm@ccs.neu.edu
-----------------------------------------------------------------------------
prev parent reply other threads:[~1995-07-25 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-23 4:00 Alpha: sign extend long Steve Peltz
1995-07-24 4:00 ` Carl J. Appellof
1995-07-25 4:00 ` Peter Sherwood [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox