rlwnm
Rotate Left Word then AND with Mask
Preliminary
PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002
Page 403 of 589
rlwnm
Rotate Left Word then AND with Mask
r
←
ROTL((RS), (RB)
27:31
)
m
←
MASK(MB, ME)
(RA)
←
r
∧
m
The contents of register RS are rotated left by the number of bit positions specified by the contents of register
RB
27:31
. A mask is generated, having 1-bits starting at the bit position specified in the MB field and ending in
the bit position specified by the ME field with 0-bits elsewhere.
If the starting point of the mask is at a higher bit position than the ending point, the ones portion of the mask
wraps from the highest bit position back to the lowest. The rotated data is ANDed with the generated mask
and the result is placed into register RA.
Registers Altered
• RA
• CR[CR0] if Rc contains 1
rlwnm
RA, RS, RB, MB, ME
Rc=0
rlwnm.
RA, RS, RB, MB, ME
Rc=1
23
RS
RA
RB
MB
ME
Rc
0
6
11
16
21
26
31
Table 9-28. Extended Mnemonics for rlwnm, rlwnm.
Mnemonic
Operands
Function
Other Registers
Altered
rotlw
RA, RS, RB
Rotate left.
(RA)
←
ROTL((RS), (RB)27:31)
Extended mnemonic for
rlwnm RA,RS,RB,0,31
rotlw.
Extended mnemonic for
rlwnm. RA,RS,RB,0,31
CR[CR0]
Summary of Contents for PPC440X5 CPU Core
Page 1: ...PPC440x5 CPU Core User s Manual Preliminary SA14 2613 02 September 12 2002 Title Page...
Page 22: ...User s Manual PPC440x5 CPU Core Preliminary Page 22 of 583 ppc440x5LOT fm September 12 2002...
Page 26: ...User s Manual PPC440x5 CPU Core Preliminary Page 26 of 589 preface fm September 12 2002...
Page 38: ...User s Manual PPC440x5 CPU Core Preliminary Page 38 of 589 overview fm September 12 2002...
Page 94: ...User s Manual PPC440x5 CPU Core Preliminary Page 94 of 589 init fm September 12 2002...
Page 132: ...User s Manual PPC440x5 CPU Core Preliminary Page 132 of 589 cache fm September 12 2002...
Page 158: ...User s Manual PPC440x5 CPU Core Preliminary Page 158 of 589 mmu fm September 12 2002...
Page 218: ...User s Manual PPC440x5 CPU Core Preliminary Page 218 of 589 timers fm September 12 2002...
Page 248: ...User s Manual PPC440x5 CPU Core Preliminary Page 248 of 589 debug fm September 12 2002...
Page 458: ...User s Manual PPC440x5 CPU Core Preliminary Page 458 of 589 regsummIntro fm September 12 2002...
Page 568: ...User s Manual PPC440x5 CPU Core Preliminary Page 568 of 589 instalfa fm September 12 2002...
Page 588: ...User s Manual PPC440x5 CPU Core Preliminary Page 588 of 583 ppc440x5IX fm September 12 2002...
Page 590: ......