home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / arch / 11677 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.3 KB

  1. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!haddad
  2. From: haddad@pa.dec.com (Ramsey Haddad)
  3. Newsgroups: comp.arch
  4. Subject: Re: Any use for Branch if Even/Odd ?
  5. Date: 15 Dec 1992 22:50:48 GMT
  6. Organization: DEC Western Research Lab, Palo Alto, CA
  7. Lines: 20
  8. Message-ID: <1glng8INNkb@usenet.pa.dec.com>
  9. References: <Bz2MMK.GIL@world.std.com> <id.08RV.WYB@ferranti.com> <1992Dec14.203631.16388@CSD-NewsHost.Stanford.EDU>
  10. NNTP-Posting-Host: haddad.pa.dec.com
  11.  
  12. In article <1992Dec14.203631.16388@CSD-NewsHost.Stanford.EDU> andy@SAIL.Stanford.EDU (Andy Freeman) writes:
  13. >Does anyone know why they preferred even/odd to >=0/<0?  Sometimes one
  14. >has to test the sign bit, so why not use it whenever one can use any
  15. >bit to split things into two classes?
  16.  
  17. The Alpha AXP architecture has 8 different conditional branches:
  18.  BEQ:  Branch if Register Equal To Zero
  19.  BGE:  Branch if Register Greater Than or Equal To Zero
  20.  BGT:  Branch if Register Greater Than Zero
  21.  BLBC: Branch if Register Low Bit Is Clear
  22.  BLBS: Branch if Register Low Bit Is Set
  23.  BLE:  Branch if Register Less Than or Equal To Zero
  24.  BLT:  Branch if Register Less Than Zero
  25.  BNE:  Branch if Register Not Equal to Zero
  26.  
  27. These same 8 conditions are available for conditional move instructions.
  28.  
  29. -- 
  30. Ramsey Haddad <haddad@decwrl.dec.com>
  31. speaking for myself.
  32.