rlwinm
Rotate Left Word Immediate then AND with Mask
PPC440x5 CPU Core User’s Manual
Preliminary
Page 400 of 589
instrset.fm.
September 12, 2002
rlwinm
Rotate Left Word Immediate then AND with Mask
r
←
ROTL((RS), SH)
m
←
MASK(MB, ME)
(RA)
←
r
∧
m
The contents of register RS are rotated left by the number of bit positions specified in the SH field. 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 1-bits portion of the mask
wraps from the highest bit position back around to the lowest. The rotated data is ANDed with the generated
mask; the result is placed into register RA.
Registers Altered
• RA
• CR[CR0] if Rc contains 1
rlwinm
RA, RS, SH, MB, ME
Rc=0
rlwinm.
RA, RS, SH, MB, ME
Rc=1
21
RS
RA
SH
MB
ME
Rc
0
6
11
16
21
26
31
Table 9-27. Extended Mnemonics for rlwinm, rlwinm.
Mnemonic
Operands
Function
Other Registers
Altered
clrlwi
RA, RS, n
Clear left immediate. (
n
< 32)
(RA)0:n-1
←
n
0
Extended mnemonic for
rlwinm RA,RS,0,n,31
clrlwi.
Extended mnemonic for
rlwinm. RA,RS,0,n,31
CR[CR0]
clrlslwi
RA, RS, b, n
Clear left and shift left immediate.
(
n
≤
b < 32)
(RA)b-n:31-n
←
(RS)b:31
(RA)32-n:31
←
n
0
(RA)0:b-n-1
←
b-n
0
Extended mnemonic for
rlwinm RA,RS,n,b
−
n,31
−
n
clrlslwi.
Extended mnemonic for
rlwinm. RA,RS,n,b
−
n,31
−
n
CR[CR0]
Содержание PPC440X5 CPU Core
Страница 1: ...PPC440x5 CPU Core User s Manual Preliminary SA14 2613 02 September 12 2002 Title Page...
Страница 22: ...User s Manual PPC440x5 CPU Core Preliminary Page 22 of 583 ppc440x5LOT fm September 12 2002...
Страница 26: ...User s Manual PPC440x5 CPU Core Preliminary Page 26 of 589 preface fm September 12 2002...
Страница 38: ...User s Manual PPC440x5 CPU Core Preliminary Page 38 of 589 overview fm September 12 2002...
Страница 94: ...User s Manual PPC440x5 CPU Core Preliminary Page 94 of 589 init fm September 12 2002...
Страница 132: ...User s Manual PPC440x5 CPU Core Preliminary Page 132 of 589 cache fm September 12 2002...
Страница 158: ...User s Manual PPC440x5 CPU Core Preliminary Page 158 of 589 mmu fm September 12 2002...
Страница 218: ...User s Manual PPC440x5 CPU Core Preliminary Page 218 of 589 timers fm September 12 2002...
Страница 248: ...User s Manual PPC440x5 CPU Core Preliminary Page 248 of 589 debug fm September 12 2002...
Страница 458: ...User s Manual PPC440x5 CPU Core Preliminary Page 458 of 589 regsummIntro fm September 12 2002...
Страница 568: ...User s Manual PPC440x5 CPU Core Preliminary Page 568 of 589 instalfa fm September 12 2002...
Страница 588: ...User s Manual PPC440x5 CPU Core Preliminary Page 588 of 583 ppc440x5IX fm September 12 2002...
Страница 590: ......