🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #11058

Re: Any use for Branch if Even/Odd ?

#11058
From: Ramsey Haddad
Date: Tue, 15 Dec 1992 22:50
20 lines
1346 bytes
In article <1992Dec14.203631.16388@CSD-NewsHost.Stanford.EDU> andy@SAIL.Stanford.EDU (Andy Freeman) writes:
>Does anyone know why they preferred even/odd to >=0/<0?  Sometimes one
>has to test the sign bit, so why not use it whenever one can use any
>bit to split things into two classes?

The Alpha AXP architecture has 8 different conditional branches:
 BEQ:  Branch if Register Equal To Zero
 BGE:  Branch if Register Greater Than or Equal To Zero
 BGT:  Branch if Register Greater Than Zero
 BLBC: Branch if Register Low Bit Is Clear
 BLBS: Branch if Register Low Bit Is Set
 BLE:  Branch if Register Less Than or Equal To Zero
 BLT:  Branch if Register Less Than Zero
 BNE:  Branch if Register Not Equal to Zero

These same 8 conditions are available for conditional move instructions.

-- 
Ramsey Haddad <haddad@decwrl.dec.com>
speaking for myself.
Technical Details
Message-ID: <1glng8INNkb@usenet.pa.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!haddad
References: <Bz2MMK.GIL@world.std.com> <id.08RV.WYB@ferranti.com> <1992Dec14.203631.16388@CSD-NewsHost.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!haddad
From: haddad@pa.dec.com (Ramsey Haddad)
Newsgroups: comp.arch
Subject: Re: Any use for Branch if Even/Odd ?
Date: 15 Dec 1992 22:50:48 GMT
Organization: DEC Western Research Lab, Palo Alto, CA
Lines: 20
Message-ID: <1glng8INNkb@usenet.pa.dec.com>
References: <Bz2MMK.GIL@world.std.com> <id.08RV.WYB@ferranti.com> <1992Dec14.203631.16388@CSD-NewsHost.Stanford.EDU>
NNTP-Posting-Host: haddad.pa.dec.com