Instruction Set Overview; Powerpc Uisa Instructions; Integer Instructions; Integer Arithmetic Instructions - IBM PowerPC 604 User Manual

Risc
Table of Contents

Advertisement

-
2.3.3 Instruction Set Overview
This section provides a brief overview of the PowerPC instructions implemented in the 604
and highlights any special information with respect to how the 604 implements a particular
instruction. Note that the categories used in this section correspond
to
those used in
Chapter 4, "Addressing Modes and Instruction Set Summary," in The Programming
Environments Manual. These categorizations are somewhat arbitrary and are provided for
the convenience of the programmer and do not necessarily reflect the Power PC architecture
specification.
Note that some instructions have the following optional features:
• CR Update-The dot(.) suffix on the mnemonic enables the update of the CR.
• Overflow option-The o suffix indicates that the overflow bit in the XER is enabled.
2.3.4 PowerPC UISA Instructions
The PowerPC UISA includes the base user-level instruction set (excluding a few user-level
cache control, synchronization, and time base instructions), user-level registers,
programming model, data types, and addressing modes. This section discusses the
instructions defined in the UISA.
2.3.4.1 Integer Instructions
This section describes the integer instructions. These consist of the following:
• 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.
2.3.4.1.1 Integer Arithmetic Instructions
Table 2-9 lists the integer arithmetic instructions for the PowerPC processors.
Table 2-9. Integer Arithmetic Instructions
Name
Mnemonic
Operand Syntax
Add Immediate
add I
rD,rA,SIMM
Add Immediate Shifted
add ls
rD,rA,SIMM
Add
add (add. addo addo.)
rD,rA,rB
Subtract From
subf (subf. subfo subfo.)
rD,rA,rB
Add Immediate Carrying
addle
rD,rA,SIMM
Add Immediate Carrying and Record
addle.
rD,rA,SIMM
2-26
Pow•PC 604 RISC Micropr0C8880r User's Manual

Advertisement

Table of Contents
loading

Table of Contents