From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,46e99d92dfdb296a X-Google-Attributes: gid1164f8,public From: gbcacm@ccs.neu.edu (Peter Sherwood) Subject: Re: Alpha: sign extend long Date: 1995/07/25 Message-ID: <3v315o$m2k@camelot.ccs.neu.edu>#1/1 X-Deja-AN: 106867047 references: <3usqta$3he@vixen.cso.uiuc.edu> organization: College of Computer Science, Northeastern University. newsgroups: comp.sys.dec 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 -----------------------------------------------------------------------------