rlwinm
Rotate Left Word Immediate then AND with Mask
Preliminary PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002 Page 401 of 589
clrrwi
RA, RS, n
Clear right immediate. (n < 32)
(RA)
32-n:31
←
n
0
Extended mnemonic for
rlwinm RA,RS,0,0,31−n
clrrwi.
Extended mnemonic for
rlwinm. RA,RS,0,0,31−n
CR[CR0]
extlwi
RA, RS, n, b
Extract and left justify immediate. (
n > 0)
(RA)
0:n-1
← (RS)
b:b+n-1
(RA)
n:31
←
32-n
0
Extended mnemonic for
rlwinm RA,RS,b,0,n−1
extlwi.
Extended mnemonic for
rlwinm. RA,RS,b,0,n−1
CR[CR0]
extrwi
RA, RS, n, b
Extract and right justify immediate. (
n > 0)
(RA)
32-n:31
← (RS)
b:b+n-1
(RA)
0:31-n
←
32-n
0
Extended mnemonic for
rlwinm RA,RS,b+n,32−n,31
extrwi.
Extended mnemonic for
rlwinm. RA,RS,b+n,32−n,31
CR[CR0]
rotlwi
RA, RS, n
Rotate left immediate.
(RA)
← ROTL((RS), n)
Extended mnemonic for
rlwinm RA,RS,n,0,31
rotlwi.
Extended mnemonic for
rlwinm. RA,RS,n,0,31
CR[CR0]
rotrwi
RA, RS, n
Rotate right immediate.
(RA)
← ROTL((RS), 32−n)
Extended mnemonic for
rlwinm RA,RS,32−n,0,31
rotrwi.
Extended mnemonic for
rlwinm. RA,RS,32−n,0,31
CR[CR0]
slwi
RA, RS, n
Shift left immediate. (
n < 32)
(RA)
0:31-n
← (RS)
n:31
(RA)
32-n:31
←
n
0
Extended mnemonic for
rlwinm RA,RS,n,0,31−n
slwi.
Extended mnemonic for
rlwinm. RA,RS,n,0,31−n
CR[CR0]
Table 9-27. Extended Mnemonics for rlwinm, rlwinm. (continued)
Mnemonic Operands Function
Other Registers
Altered