Intel® Itanium® Architecture Software Developer's Manual
Total Page:16
File Type:pdf, Size:1020Kb
Intel® Itanium® Architecture Software Developer’s Manual Volume 1: Application Architecture Revision 2.2 January 2006 Document Number: 245317-005 THIS DOCUMENT IS PROVIDED “AS IS” WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. INTEL PRODUCTS ARE NOT INTENDED FOR USE IN MEDICAL, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS. Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. Intel processors based on the Itanium architecture may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request. Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order. Copies of documents which have an order number and are referenced in this document, or other Intel literature, may be obtained by calling 1-800-548-4725, or by visiting Intel's website at http://www.intel.com. Intel, Intel486, Itanium, Pentium, VTune and MMX are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. Copyright © 2000-2005, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. ii Volume 1: Intel® Itanium® Architecture Software Developer’s Manual Contents Part I: Application Architecture Guide 1 About this Manual .................................................................................................................. 1:1 1.1 Overview of Volume 1: Application Architecture.......................................................... 1:1 1.1.1 Part 1: Application Architecture Guide ........................................................... 1:1 1.1.2 Part 2: Optimization Guide for the Intel® Itanium® Architecture ..................... 1:2 1.2 Overview of Volume 2: System Architecture ............................................................... 1:2 1.2.1 Part 1: System Architecture Guide ................................................................. 1:2 1.2.2 Part 2: System Programmer’s Guide.............................................................. 1:3 1.2.3 Appendices..................................................................................................... 1:4 1.3 Overview of Volume 3: Instruction Set Reference....................................................... 1:4 1.3.1 Part 1: Intel® Itanium® Instruction Set Descriptions ....................................... 1:4 1.3.2 Part 2: IA-32 Instruction Set Descriptions....................................................... 1:4 1.4 Terminology................................................................................................................. 1:5 1.5 Related Documents..................................................................................................... 1:5 1.6 Revision History .......................................................................................................... 1:6 2 Introduction to the Intel® Itanium® Architecture ............................................................... 1:11 2.1 Operating Environments............................................................................................ 1:11 2.2 Instruction Set Transition Model Overview................................................................ 1:12 2.3 Intel® Itanium® Instruction Set Features ................................................................... 1:13 2.4 Instruction Level Parallelism...................................................................................... 1:13 2.5 Compiler to Processor Communication..................................................................... 1:14 2.6 Speculation................................................................................................................ 1:14 2.6.1 Control Speculation ...................................................................................... 1:14 2.6.2 Data Speculation .......................................................................................... 1:15 2.6.3 Predication ................................................................................................... 1:15 2.7 Register Stack ........................................................................................................... 1:16 2.8 Branching .................................................................................................................. 1:16 2.9 Register Rotation....................................................................................................... 1:17 2.10 Floating-point Architecture ........................................................................................ 1:17 2.11 Multimedia Support ................................................................................................... 1:17 2.12 Intel® Itanium® System Architecture Features .......................................................... 1:18 2.12.1 Support for Multiple Address Space Operating Systems ............................. 1:18 2.12.2 Support for Single Address Space Operating Systems................................ 1:18 2.12.3 System Performance and Scalability............................................................ 1:18 2.12.4 System Security and Supportability.............................................................. 1:19 2.13 Terminology............................................................................................................... 1:19 3 Execution Environment ....................................................................................................... 1:21 3.1 Application Register State ......................................................................................... 1:21 3.1.1 Reserved and Ignored Registers and Fields ................................................ 1:21 3.1.2 General Registers ........................................................................................ 1:23 3.1.3 Floating-point Registers ............................................................................... 1:24 Volume 1: Intel® Itanium® Architecture Software Developer’s Manual iii 3.1.4 Predicate Registers .......................................................................................1:24 3.1.5 Branch Registers...........................................................................................1:24 3.1.6 Instruction Pointer .........................................................................................1:24 3.1.7 Current Frame Marker...................................................................................1:25 3.1.8 Application Registers.....................................................................................1:25 3.1.9 Performance Monitor Data Registers (PMD).................................................1:30 3.1.10 User Mask (UM) ............................................................................................1:30 3.1.11 Processor Identification Registers.................................................................1:31 3.2 Memory ......................................................................................................................1:33 3.2.1 Application Memory Addressing Model .........................................................1:33 3.2.2 Addressable Units and Alignment .................................................................1:33 3.2.3 Byte Ordering ................................................................................................1:33 3.3 Instruction Encoding Overview...................................................................................1:34 3.4 Instruction Sequencing Considerations......................................................................1:36 3.4.1 RAW Dependency Special Cases.................................................................1:39 3.4.2 WAW Dependency Special Cases ................................................................1:39 3.4.3 WAR Dependency Special Cases.................................................................1:40 3.4.4 Processor Behavior on Dependency Violations ............................................1:40 3.5 Undefined Behavior....................................................................................................1:41 4 Application Programming Model........................................................................................ 1:43 4.1 Register Stack............................................................................................................1:43