Transcription of PowerPC User Instruction Set Architecture Book I Version 2
1 IVersion user Instruction Set ArchitectureBook IVersion 28, 2005 Manager:Joe Wetzel/Poughkeepsie/IBMT echnical Content:Ed Silha/Austin/IBMC athy May/Watson/IBMBrad Frey/Austin/IBMJ unichi Furukawa/Austin/IBMG iles Frazier/Austin/IBMV ersion PowerPC user Instruction Set ArchitectureThe following paragraph does not apply to the UnitedKingdom or any country or state where such provisionsare inconsistent with local specifications in this manual are subject to changewithout notice. This manual is provided AS IS . Inter-national Business Machines Corp. makes no warrantyof any kind, either expressed or implied, including, butnot limited to, the implied warranties of merchantabilityand fitness for a particular Business Machines Corp.
2 Does not war-rant that the contents of this publication or the accom-panying source code examples, whether individually oras one or more groups, will meet your requirements orthat the publication or the accompanying source codeexamples are publication could include technical inaccuracies ortypographical errors. Changes are periodically made tothe information herein; these changes will be incorpo-rated in new editions of the comments to IBM Corporation, Internal Zip9630, 11400 Burnett Road, Austin, Texas may use or distribute whatever information yousupply in any way it believes appropriate without incur-ring any obligation to following terms are trademarks of the InternationalBusiness Machines Corporation in the United Statesand/or other countries.
3 IBM PowerPC RISC/System 6000 POWERPOWER2 POWER4 POWER4+ IBM System/370 Notice to Government Users DocumentationRelated to Restricted Rights Use, duplication or dis-closure is subject to restrictions set fourth in GSA ADPS chedule Contract with IBM Corporation. Copyright International Business Machines Corpora-tion, 1994, 2003. All rights reserved. Preface iiiVersion document defines the PowerPC user InstructionSet Architecture . It covers the base Instruction set andrelated facilities available to the application related documents define the PowerPC VirtualEnvironment Architecture , the PowerPC OperatingEnvironment Architecture , and PowerPC Implementa-tion Features.
4 book II, PowerPC Virtual EnvironmentArchitecture defines the storage model and relatedinstructions and facilities available to the applicationprogrammer, and the time-keeping facilities available tothe application programmer. book III, PowerPC Oper-ating Environment Architecture defines the system(privileged) instructions and related facilities. book IV, PowerPC Implementation Features defines the imple-mentation-dependent aspects of a particular used in this document, the term PowerPC Architec-ture refers to the instructions and facilities described inBooks I, II, and III.
5 The description of the instantiation ofthe PowerPC Architecture in a given implementationincludes also the material in book IV for that : Change bars indicate changes from Version PowerPC user Instruction Set Architecture Table of Contents vVersion of ContentsChapter 1. Introduction .. Overview.. Computation modes .. Instruction Mnemonics and Compatibility with the POWER Archi-tecture .. Document Conventions .. Definitions and Notation.. Reserved Fields and Reserved Val-ues .. Description of Instruction Operation Processor Overview.
6 Instruction formats .. I-Form .. B-Form.. SC-Form .. D-Form .. DS-FORM .. X-FORM .. XL-FORM .. XFX-FORM .. XFL-FORM .. XS-FORM .. XO-FORM .. A-FORM .. M-FORM .. MD-FORM .. MDS-FORM .. Instruction Fields .. Classes of instructions .. Defined Instruction Class.. Illegal Instruction Class .. Reserved Instruction Class .. Forms of Defined instructions .. Preferred Instruction Forms .. Invalid Instruction Forms .. Optionality.. Exceptions.
7 Storage Addressing .. Storage Operands .. Effective Address Calculation .. 15 Chapter 2. Branch Processor .. Branch Processor Overview .. Instruction Execution Order .. Branch Processor Registers .. Condition Register .. Link Register .. Count Register .. Branch Processor instructions .. Branch instructions .. System Call Instruction .. Condition Register Logical Instruc-tions .. Condition Register Field Instruction .. 30 Chapter 3. Fixed-Point Processor . Fixed-Point Processor Overview .. Fixed-Point ProcessorRegisters.
8 General Purpose Registers .. Fixed-Point Exception Register .. Fixed-Point Processor instructions . Fixed-Point Storage Access Instruc-tions .. Storage Access Exceptions.. Fixed-Point Load instructions .. Fixed-Point Store instructions .. Fixed-Point Load and Store with Byte Reversal instructions .. Fixed-Point Load and Store Multiple instructions .. Fixed-Point Move Assist Instruc-tions .. Other Fixed-Point instructions .. Fixed-Point Arithmetic Fixed-Point Compare instructions Fixed-Point Trap instructions .. Fixed-Point Logical instructions .
9 Fixed-Point Rotate and Shift instructions .. Fixed-Point Rotate instructions Fixed-Point Shift instructions . Move To/From System Register instructions .. 81 Chapter 4. Floating-Point Processor . Floating-Point Processor Overview . Floating-Point Processor Registers. 86 Version PowerPC user Instruction Set Floating-Point Registers .. Floating-Point Status and Control Register .. Floating-Point Data .. Data Format .. Value Representation .. Sign of Result .. Normalization andDenormalization .. Data Handling and Precision.
10 Single-Precision Operands .. Integer-Valued Operands .. Rounding.. Floating-Point Exceptions .. Invalid Operation Exception .. Definition .. Action .. Zero Divide Exception .. Definition .. Action .. Overflow Exception .. Definition .. Action .. Underflow Exception .. Definition .. Action .. Inexact Exception .. Definition .. Action .. Floating-Point Execution Models .. Execution Model for IEEE Opera-tions .. Execution Model forMultiply-Add Type instructions .. Floating-Point Processor instructions .