User’s Manual
IBM PowerPC 750GX and 750GL RISC Microprocessor
Summary” in the PowerPC Microprocessor Family: The Programming Environments Manual. These categorizations are somewhat arbitrary and are provided for the convenience of the programmer and do not necessarily reflect the PowerPC Architecture specification.
Note that some instructions have the following optional features:
•CR
•Overflow
The PowerPC UISA includes the base
This section describes the integer instructions, which consist of:
•Integer arithmetic instructions
•Integer compare instructions
•Integer logical instructions
•Integer rotate and shift instructions
Integer instructions use the content of the GPRs as source operands and place results into GPRs, into the Integer Exception Register (XER), and into Condition Register (CR) fields.
Integer Arithmetic Instructions
Table
Table | (Page 1 of 2) |
|
|
|
|
Name | Mnemonic | Syntax |
|
|
|
|
|
|
Add Immediate | addi | rD,rA,SIMM |
|
|
|
Add Immediate Shifted | addis | rD,rA,SIMM |
|
|
|
Add | add (add. addo addo.) | rD,rA,rB |
|
|
|
Subtract From | subf (subf. subfo subfo.) | rD,rA,rB |
|
|
|
Add Immediate Carrying | addic | rD,rA,SIMM |
|
|
|
Add Immediate Carrying and Record | addic. | rD,rA,SIMM |
|
|
|
Subtract from Immediate Carrying | subfic | rD,rA,SIMM |
|
|
|
Add Carrying | addc (addc. addco addco.) | rD,rA,rB |
|
|
|
Subtract from Carrying | subfc (subfc. subfco subfco.) | rD,rA,rB |
|
|
|
Add Extended | adde (adde. addeo addeo.) | rD,rA,rB |
|
|
|
Subtract from Extended | subfe (subfe. subfeo subfeo.) | rD,rA,rB |
|
|
|
Add to Minus One Extended | addme (addme. addmeo addmeo.) | rD,rA |
|
|
|
Subtract from Minus One Extended | subfme (subfme. subfmeo subfmeo.) | rD,rA |
|
|
|
|
|
|
Programming Model |
| gx_02.fm.(1.2) |
Page 92 of 377 |
| March 27, 2006 |