Article View: comp.arch
Article #12643Re: Conditional Execution (was Re: % in hash table)
From: Vincent Lefevre
Date: Tue, 17 Oct 1995 03:21
Date: Tue, 17 Oct 1995 03:21
46 lines
2343 bytes
2343 bytes
In article <baum-1610951033230001@piem3.atg.apple.com>, Allen J. Baum (baum@apple.com) wrote:
> Ignoring conditional branches for them moment:
> ALL instructions on the ARM are conditional
> PA-RISC has a 'skip the next instruction' in arithmetics,
> which is equivalent to making the next instruction conditional
> SPARC and ALPHA have conditional move instructions
> (from memory here- could be wrong)
I don't think Sparc has a conditional move: I haven't seen it in
the papers I have. If someone else has more information about this,
I'm interested in them. But...
Sparc has also a skip next instruction: more generally, with a
conditional branch, you can skip the following instruction is
the branch is not taken, by writing ",a" after the instruction.
I think this possibility is manly used in loops, e.g.
loop:
...
be,a loop
inc l0
instead of
loop:
...
inc l0
be loop
nop
To skip an instruction conditionally, write something like:
bne,a label
<instruction>
label: ...
Here <instruction> is executed iff Z = 0 (nonzero result).
--
Vincent Lefevre, vlefevre@ens.ens-lyon.fr
Magistere d'informatique 3e annee |
Ecole Normale Superieure de Lyon | Acorn RiscPC600, 4+1MB RAM, 210MB IDE
France | Apple CD-300, SyQuest 270MB
http://www.ens-lyon.fr/~vlefevre | Atari Falcon030, 4MB RAM, 85MB IDE
----------------------------------------------------------------------------
[Properties of 17] 4^17 = 17179869184
Technical Details
Message-ID:
<45v7g1$7hd@cri.ens-lyon.fr>Path:
arc1-ca.pugleaf.net!cri.ens-lyon.fr!cordeliers!vlefevreReferences:
<43tqr6$3au@mikasa.iol.it> <4522pb$cid@hermes.synopsys.com> <1995Oct1102.48.02.1823@silverton.berkeley.edu> <DGCFt9.GH7@world.std.com> <45lb6c$jeb@doc.armltd.co.uk> <1995Oct14.192120.10218@kbbs.org> <baum-1610951033230001@piem3.atg.apple.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!cri.ens-lyon.fr!cordeliers!vlefevre From: vlefevre@cordeliers (Vincent Lefevre) Newsgroups: comp.arch,comp.arch.arithmetic,comp.lang.c Subject: Re: Conditional Execution (was Re: % in hash table) Followup-To: comp.arch,comp.arch.arithmetic,comp.lang.c Date: 17 Oct 1995 03:21:37 GMT Organization: Ecole Normale Superieure de Lyon, France Message-ID: <45v7g1$7hd@cri.ens-lyon.fr> References: <43tqr6$3au@mikasa.iol.it> <4522pb$cid@hermes.synopsys.com> <1995Oct1102.48.02.1823@silverton.berkeley.edu> <DGCFt9.GH7@world.std.com> <45lb6c$jeb@doc.armltd.co.uk> <1995Oct14.192120.10218@kbbs.org> <baum-1610951033230001@piem3.atg.apple.com> Reply-To: vlefevre@ens.ens-lyon.fr NNTP-Posting-Host: cordeliers.ens-lyon.fr X-Newsreader: TIN [version 1.2 PL2]