Rlwimi; Table 9-26. Extended Mnemonics For Rlwimi, Rlwimi - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

Preliminary

rlwimi

Rotate Left Word Immediate then Mask Insert
rlwimi
RA, RS, SH, MB, ME
rlwimi.
RA, RS, SH, MB, ME
20
0
6
r
ROTL((RS), SH)
m
MASK(MB, ME)
(RA)
(r
m)
((RA)
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 inserted into register RA, in
positions corresponding to the bit positions in the mask that contain a 1-bit.
Registers Altered
• RA
• CR[CR0] if Rc contains 1

Table 9-26. Extended Mnemonics for rlwimi, rlwimi.

Mnemonic
Operands
inslwi
RA, RS, n, b
inslwi.
insrwi
RA, RS, n, b
insrwi.
instrset.fm.
September 12, 2002
RS
RA
11
m)
Insert from left immediate (n > 0).
(RA) b:b+n-1
(RS) 0:n-1
Extended mnemonic for
rlwimi RA,RS,32 b,b,b+n 1
Extended mnemonic for
rlwimi. RA,RS,32 b,b,b+n 1
Insert from right immediate. (n > 0)
(RA) b:b+n-1
(RS) 32-n:31
Extended mnemonic for
rlwimi RA,RS,32 b n,b,b+n 1
Extended mnemonic for
rlwimi. RA,RS,32 b n,b,b+n 1
Rotate Left Word Immediate then Mask Insert
PPC440x5 CPU Core User's Manual
Rc=0
Rc=1
SH
MB
16
21
Function
rlwimi
ME
Rc
26
31
Other Registers
Altered
CR[CR0]
CR[CR0]
Page 399 of 589

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents