Download PPC440 Processor User's Manual

Transcript
440 – PPC440 Processor
Revision 1.09 – March 13, 2008
cntlzw
Preliminary User’s Manual
Count Leading Zeros Word
cntlzw
Count Leading Zeros Word
cntlzw
cntlzw.
RA, RS
Rc=0
RA, RS
Rc=1
31
0
RS
6
26
RA
11
16
21
Rc
31
n ← 0
do while n < 32
if (RS)n = 1 then leave
n ← n + 1
(RA) ← n
The consecutive leading 0 bits in register RS are counted; the count is placed into register RA.
The count ranges from 0 through 32, inclusive.
Registers Altered
• RA
• CR[CR0] if Rc contains 1
Invalid Instruction Forms
• Reserved fields
244
AMCC Proprietary