Rlwinm; Table 9-27. Extended Mnemonics For Rlwinm, Rlwinm - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

rlwinm

Rotate Left Word Immediate then AND with Mask
PPC440x5 CPU Core User's Manual
rlwinm
Rotate Left Word Immediate then AND with Mask
rlwinm
RA, RS, SH, MB, ME
rlwinm.
RA, RS, SH, MB, ME
21
0
6
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

Table 9-27. Extended Mnemonics for rlwinm, rlwinm.

Mnemonic
Operands
clrlwi
RA, RS, n
clrlwi.
clrlslwi
RA, RS, b, n
clrlslwi.
Page 400 of 589
RS
RA
11
n
Clear left immediate. (
n 0
(RA) 0:n-1
Extended mnemonic for
rlwinm RA,RS,0,n,31
Extended mnemonic for
rlwinm. RA,RS,0,n,31
Clear left and shift left immediate.
n
(
b < 32)
(RA) b-n:31-n
(RS) b:31
n 0
(RA) 32-n:31
b-n 0
(RA) 0:b-n-1
Extended mnemonic for
rlwinm RA,RS,n,b n,31 n
Extended mnemonic for
rlwinm. RA,RS,n,b n,31 n
Rc=0
Rc=1
SH
16
21
Function
< 32)
Preliminary
MB
ME
26
Other Registers
Altered
CR[CR0]
CR[CR0]
instrset.fm.
September 12, 2002
Rc
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents