Cntlzw - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

cntlzw

Count Leading Zeros Word
PPC440x5 CPU Core User's Manual
cntlzw
Count Leading Zeros Word
cntlzw
RA, RS
cntlzw.
RA, RS
31
0
6
n
0
do while n < 32
if (RS)
= 1 then leave
n
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
Page 286 of 589
RS
RA
11
Rc=0
Rc=1
16
21
Preliminary
26
Rc
31
instrset.fm.
September 12, 2002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents