
MOTOROLA
Chapter 3. Instruction Set Model
3-15
Instruction Set Summary
The integer shift instructions perform left and right shifts. Immediate-form logical
(unsigned) shift operations are obtained by specifying masks and shift values for certain
rotate instructions. Simplified mnemonics are provided, making coding of such shifts
simpler and easier to understand.
Multiple-precision shifts can be programmed as shown in Appendix C, “Multiple-Precision
Shifts,” in the
Programming Environments Manual
.
The integer shift instructions are listed in Table 3-7.
3.2.4.2
Floating-Point Instructions
This section describes the floating-point instructions, which include the following:
Floating-point arithmetic instructions
Floating-point multiply-add instructions
Floating-point rounding and conversion instructions
Floating-point compare instructions
Floating-point status and control register instructions
Floating-point move instructions
See Section 3.2.4.3, “Load and Store Instructions,” for information about floating-point
loads and stores.
The PowerPC architecture supports a floating-point system as defined in the IEEE 754
standard, but requires software support to conform with that standard. All floating-point
operations conform to the IEEE 754 standard, except if software sets the non-IEEE mode
bit (NI) in the FPSCR. The G2 core is in the nondenormalized mode when the NI bit is set
in the FPSCR. If a denormalized result is produced, a default result of zero is generated.
Table 3-6. Integer Rotate Instructions
Name
Mnemonic
Operand Syntax
Rotate Left Word Immediate then AND with
Mask
rlwinm
(
rlwinm.
)
r
A
,r
S
,
SH
,
MB
,
ME
Rotate Left Word Immediate then Mask Insert
rlwimi
(
rlwimi.
)
r
A
,r
S
,
SH
,
MB
,
ME
Rotate Left Word then AND with Mask
rlwnm
(
rlwnm.
)
r
A
,r
S
,r
B
,
MB
,
ME
Table 3-7. Integer Shift Instructions
Name
Mnemonic
Operand Syntax
Shift Left Word
slw
(
slw.
)
r
A
,r
S
,r
B
Shift Right Algebraic Word
sraw
(
sraw.
)
r
A
,r
S
,r
B
Shift Right Algebraic Word Immediate
srawi
(
srawi.
)
r
A
,r
S
,
SH
Shift Right Word
srw
(
srw.
)
r
A
,r
S
,r
B
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.