User’s Manual

IBM PowerPC 750GX and 750GL RISC Microprocessor

The integer rotate instructions are summarized in Table 2-10. For more information, see the PowerPC Microprocessor Family: The Programming Environments Manual.

Table 2-10. Integer Rotate Instructions

Name

Mnemonic

Syntax

 

 

 

 

 

 

Rotate Left Word Immediate then AND with Mask

rlwinm (rlwinm.)

rA,rS,SH,MB,ME

 

 

 

 

Rotate Left Word then AND with Mask

rlwnm

(rlwnm.)

rA,rS,rB,MB,ME

 

 

 

 

Rotate Left Word Immediate then Mask Insert

rlwimi

(rlwimi.)

rA,rS,SH,MB,ME

 

 

 

 

Integer Shift Instructions

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 (shown in Appendix F, “Simplified Mnemonics,” in the PowerPC Microprocessor Family: The Programming Environments Manual) are provided to make 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 PowerPC Microprocessor Family: The Programming Environments Manual. The integer shift instructions are summarized in Table 2-11.

Table 2-11. Integer Shift Instructions

Name

Mnemonic

Syntax

 

 

 

 

 

 

 

 

Shift Left Word

slw

(slw.)

rA,rS,rB

 

 

 

 

Shift Right Word

srw

(srw.)

rA,rS,rB

 

 

 

 

Shift Right Algebraic Word Immediate

srawi

(srawi.)

rA,rS,SH

 

 

 

 

Shift Right Algebraic Word

sraw

(sraw.)

rA,rS,rB

 

 

 

 

2.3.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 2.3.4.3 on page 98 for information about floating-point loads and stores.

The PowerPC Architecture supports a floating-point system as defined in the IEEE 754-1985 standard, but requires software support to conform with that standard. All floating-point operations conform to the IEEE 754-1985 standard, except if software sets FPSCR[NI] to the non-IEEE mode.

Floating-Point Arithmetic Instructions

The floating-point arithmetic instructions are summarized in Table 2-12.

gx_02.fm.(1.2)

Programming Model

March 27, 2006

Page 95 of 377