E200z6 Powerpc ™ Core

Total Page:16

File Type:pdf, Size:1020Kb

E200z6 Powerpc ™ Core e200z6RM 6/2004 Rev. 0 e200z6 PowerPC™ Core Reference Manual Contents SectionParagraph Page Number Title Number ChapterContents 1 e200z6 Overview 1.1 Overview of the e200z6....................................................................................... 1-1 1.1.1 Features............................................................................................................ 1-3 1.2 Programming Model ............................................................................................ 1-4 1.2.1 Register Set...................................................................................................... 1-4 1.3 Instruction Set ...................................................................................................... 1-6 1.4 Interrupts and Exception Handling ...................................................................... 1-7 1.4.1 Exception Handling ......................................................................................... 1-8 1.4.2 Interrupt Classes .............................................................................................. 1-8 1.4.3 Interrupt Types................................................................................................. 1-9 1.4.4 Interrupt Registers............................................................................................ 1-9 1.5 Microarchitecture Summary .............................................................................. 1-12 1.5.1 Instruction Unit Features ............................................................................... 1-13 1.5.2 Integer Unit Features ..................................................................................... 1-13 1.5.3 Load/Store Unit (LSU) Features.................................................................... 1-14 1.5.4 L1 Cache Features ......................................................................................... 1-14 1.5.5 MMU Features............................................................................................... 1-14 1.5.6 e200z6 System Bus (Core Complex Interface) Features............................... 1-15 1.5.7 Nexus3 Module Features ............................................................................... 1-15 1.6 Legacy Support of PowerPC Architecture......................................................... 1-15 1.6.1 Instruction Set Compatibility......................................................................... 1-16 1.6.1.1 User Instruction Set ................................................................................... 1-16 1.6.1.2 Supervisor Instruction Set.......................................................................... 1-16 1.6.2 Memory Subsystem ....................................................................................... 1-16 1.6.3 Exception Handling ....................................................................................... 1-16 1.6.4 Memory Management.................................................................................... 1-17 1.6.5 Reset............................................................................................................... 1-17 1.6.6 Little-Endian Mode........................................................................................ 1-17 Contents iii PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Contents Paragraph Page Number Title Number Chapter 2 Register Model 2.1 PowerPC Book E Registers ................................................................................. 2-3 2.2 e200z6-Specific Registers.................................................................................... 2-5 2.3 Processor Control Registers................................................................................. 2-7 2.3.1 Machine State Register (MSR) ........................................................................ 2-7 2.3.2 Processor ID Register (PIR) ............................................................................ 2-9 2.3.3 Processor Version Register (PVR)................................................................... 2-9 2.3.4 System Version Register (SVR)..................................................................... 2-10 2.4 Registers for Integer Operations ........................................................................ 2-11 2.4.1 General-Purpose Registers (GPRs)................................................................ 2-11 2.4.2 Integer Exception Register (XER)................................................................. 2-11 2.5 Registers for Branch Operations........................................................................ 2-12 2.5.1 Condition Register (CR) ................................................................................ 2-12 2.5.1.1 CR Setting for Integer Instructions............................................................ 2-14 2.5.1.2 CR Setting for Store Conditional Instructions........................................... 2-14 2.5.1.3 CR Setting for Compare Instructions ........................................................ 2-14 2.5.2 Link Register (LR)......................................................................................... 2-15 2.5.3 Count Register (CTR).................................................................................... 2-16 2.6 SPE and SPFP APU Registers ........................................................................... 2-16 2.6.1 Signal Processing/Embedded Floating-Point Status and Control Register (SPEFSCR).................................................................................. 2-16 2.6.2 Accumulator (ACC)....................................................................................... 2-19 2.7 Interrupt Registers.............................................................................................. 2-19 2.7.1 Interrupt Registers Defined by Book E.......................................................... 2-19 2.7.1.1 Save/Restore Register 0 (SRR0)................................................................ 2-20 2.7.1.2 Save/Restore Register 1 (SRR1)................................................................ 2-20 2.7.1.3 Critical Save/Restore Register 0 (CSRR0)................................................ 2-20 2.7.1.4 Critical Save/Restore Register 1 (CSRR1)................................................ 2-21 2.7.1.5 Data Exception Address Register (DEAR)................................................ 2-21 2.7.1.6 Interrupt Vector Prefix Register (IVPR).................................................... 2-22 2.7.1.7 Interrupt Vector Offset Registers (IVORs) ................................................ 2-22 2.7.1.8 Exception Syndrome Register (ESR) ........................................................ 2-24 2.7.2 e200z6-Specific Interrupt Registers............................................................... 2-25 2.7.2.1 Debug Save/Restore Register 0 (DSRR0) ................................................. 2-25 2.7.2.2 Debug Save/Restore Register 1 (DSRR1) ................................................. 2-26 2.7.2.3 Machine Check Syndrome Register (MCSR)............................................ 2-26 2.8 Software-Use SPRs (SPRG0–SPRG7 and USPRG0) ....................................... 2-27 2.9 Timer Registers.................................................................................................. 2-28 2.9.1 Timer Control Register (TCR)....................................................................... 2-29 2.9.2 Timer Status Register (TSR).......................................................................... 2-31 iv e200z6 PowerPC Core Reference Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Contents Paragraph Page Number Title Number 2.9.3 Time Base (TBU and TBL) ........................................................................... 2-32 2.9.4 Decrementer Register .................................................................................... 2-34 2.9.5 Decrementer Auto-Reload Register (DECAR).............................................. 2-34 2.10 Debug Registers................................................................................................. 2-35 2.10.1 Debug Address and Value Registers.............................................................. 2-35 2.10.1.1 Instruction Address Compare Registers (IAC1–IAC4)............................. 2-35 2.10.1.2 Data Address Compare Registers (DAC1–DAC2).................................... 2-36 2.10.2 Debug Counter Register (DBCNT) ............................................................... 2-36 2.10.3 Debug Control and Status Registers (DBCR0–DBCR3)............................... 2-37 2.10.3.1 Debug Control Register 0 (DBCR0).......................................................... 2-37 2.10.3.2 Debug Control Register 1 (DBCR1).......................................................... 2-40 2.10.3.3 Debug Control Register 2 (DBCR2).......................................................... 2-42 2.10.3.4 Debug Control Register 3 (DBCR3).......................................................... 2-43 2.10.4 Debug Status Register (DBSR)...................................................................... 2-50 2.11 Hardware Implementation-Dependent Registers............................................... 2-51 2.11.1 Hardware Implementation-Dependent Register 0 (HID0)............................. 2-52 2.11.2 Hardware Implementation-Dependent Register 1 (HID1)............................. 2-54 2.12 Branch Target Buffer (BTB) Registers .............................................................
Recommended publications
  • IEEE Standard 754 for Binary Floating-Point Arithmetic
    Work in Progress: Lecture Notes on the Status of IEEE 754 October 1, 1997 3:36 am Lecture Notes on the Status of IEEE Standard 754 for Binary Floating-Point Arithmetic Prof. W. Kahan Elect. Eng. & Computer Science University of California Berkeley CA 94720-1776 Introduction: Twenty years ago anarchy threatened floating-point arithmetic. Over a dozen commercially significant arithmetics boasted diverse wordsizes, precisions, rounding procedures and over/underflow behaviors, and more were in the works. “Portable” software intended to reconcile that numerical diversity had become unbearably costly to develop. Thirteen years ago, when IEEE 754 became official, major microprocessor manufacturers had already adopted it despite the challenge it posed to implementors. With unprecedented altruism, hardware designers had risen to its challenge in the belief that they would ease and encourage a vast burgeoning of numerical software. They did succeed to a considerable extent. Anyway, rounding anomalies that preoccupied all of us in the 1970s afflict only CRAY X-MPs — J90s now. Now atrophy threatens features of IEEE 754 caught in a vicious circle: Those features lack support in programming languages and compilers, so those features are mishandled and/or practically unusable, so those features are little known and less in demand, and so those features lack support in programming languages and compilers. To help break that circle, those features are discussed in these notes under the following headings: Representable Numbers, Normal and Subnormal, Infinite
    [Show full text]
  • SPARC Assembly Language Reference Manual
    SPARC Assembly Language Reference Manual 2550 Garcia Avenue Mountain View, CA 94043 U.S.A. A Sun Microsystems, Inc. Business 1995 Sun Microsystems, Inc. 2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Portions of this product may be derived from the UNIX® system, licensed from UNIX Systems Laboratories, Inc., a wholly owned subsidiary of Novell, Inc., and from the Berkeley 4.3 BSD system, licensed from the University of California. Third-party software, including font technology in this product, is protected by copyright and licensed from Sun’s Suppliers. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19. The product described in this manual may be protected by one or more U.S. patents, foreign patents, or pending applications. TRADEMARKS Sun, Sun Microsystems, the Sun logo, SunSoft, the SunSoft logo, Solaris, SunOS, OpenWindows, DeskSet, ONC, ONC+, and NFS are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. UNIX is a registered trademark in the United States and other countries, exclusively licensed through X/Open Company, Ltd. OPEN LOOK is a registered trademark of Novell, Inc.
    [Show full text]
  • X86-64 Machine-Level Programming∗
    x86-64 Machine-Level Programming∗ Randal E. Bryant David R. O'Hallaron September 9, 2005 Intel’s IA32 instruction set architecture (ISA), colloquially known as “x86”, is the dominant instruction format for the world’s computers. IA32 is the platform of choice for most Windows and Linux machines. The ISA we use today was defined in 1985 with the introduction of the i386 microprocessor, extending the 16-bit instruction set defined by the original 8086 to 32 bits. Even though subsequent processor generations have introduced new instruction types and formats, many compilers, including GCC, have avoided using these features in the interest of maintaining backward compatibility. A shift is underway to a 64-bit version of the Intel instruction set. Originally developed by Advanced Micro Devices (AMD) and named x86-64, it is now supported by high end processors from AMD (who now call it AMD64) and by Intel, who refer to it as EM64T. Most people still refer to it as “x86-64,” and we follow this convention. Newer versions of Linux and GCC support this extension. In making this switch, the developers of GCC saw an opportunity to also make use of some of the instruction-set features that had been added in more recent generations of IA32 processors. This combination of new hardware and revised compiler makes x86-64 code substantially different in form and in performance than IA32 code. In creating the 64-bit extension, the AMD engineers also adopted some of the features found in reduced-instruction set computers (RISC) [7] that made them the favored targets for optimizing compilers.
    [Show full text]
  • FPGA Based Quadruple Precision Floating Point Arithmetic for Scientific Computations
    International Journal of Advanced Computer Research (ISSN (print): 2249-7277 ISSN (online): 2277-7970) Volume-2 Number-3 Issue-5 September-2012 FPGA Based Quadruple Precision Floating Point Arithmetic for Scientific Computations 1Mamidi Nagaraju, 2Geedimatla Shekar 1Department of ECE, VLSI Lab, National Institute of Technology (NIT), Calicut, Kerala, India 2Asst.Professor, Department of ECE, Amrita Vishwa Vidyapeetham University Amritapuri, Kerala, India Abstract amounts, and fractions are essential to many computations. Floating-point arithmetic lies at the In this project we explore the capability and heart of computer graphics cards, physics engines, flexibility of FPGA solutions in a sense to simulations and many models of the natural world. accelerate scientific computing applications which Floating-point computations suffer from errors due to require very high precision arithmetic, based on rounding and quantization. Fast computers let IEEE 754 standard 128-bit floating-point number programmers write numerically intensive programs, representations. Field Programmable Gate Arrays but computed results can be far from the true results (FPGA) is increasingly being used to design high due to the accumulation of errors in arithmetic end computationally intense microprocessors operations. Implementing floating-point arithmetic in capable of handling floating point mathematical hardware can solve two separate problems. First, it operations. Quadruple Precision Floating-Point greatly speeds up floating-point arithmetic and Arithmetic is important in computational fluid calculations. Implementing a floating-point dynamics and physical modelling, which require instruction will require at a generous estimate at least accurate numerical computations. However, twenty integer instructions, many of them conditional modern computers perform binary arithmetic, operations, and even if the instructions are executed which has flaws in representing and rounding the on an architecture which goes to great lengths to numbers.
    [Show full text]
  • X86 Intrinsics Cheat Sheet Jan Finis [email protected]
    x86 Intrinsics Cheat Sheet Jan Finis [email protected] Bit Operations Conversions Boolean Logic Bit Shifting & Rotation Packed Conversions Convert all elements in a packed SSE register Reinterpet Casts Rounding Arithmetic Logic Shift Convert Float See also: Conversion to int Rotate Left/ Pack With S/D/I32 performs rounding implicitly Bool XOR Bool AND Bool NOT AND Bool OR Right Sign Extend Zero Extend 128bit Cast Shift Right Left/Right ≤64 16bit ↔ 32bit Saturation Conversion 128 SSE SSE SSE SSE Round up SSE2 xor SSE2 and SSE2 andnot SSE2 or SSE2 sra[i] SSE2 sl/rl[i] x86 _[l]rot[w]l/r CVT16 cvtX_Y SSE4.1 cvtX_Y SSE4.1 cvtX_Y SSE2 castX_Y si128,ps[SSE],pd si128,ps[SSE],pd si128,ps[SSE],pd si128,ps[SSE],pd epi16-64 epi16-64 (u16-64) ph ↔ ps SSE2 pack[u]s epi8-32 epu8-32 → epi8-32 SSE2 cvt[t]X_Y si128,ps/d (ceiling) mi xor_si128(mi a,mi b) mi and_si128(mi a,mi b) mi andnot_si128(mi a,mi b) mi or_si128(mi a,mi b) NOTE: Shifts elements right NOTE: Shifts elements left/ NOTE: Rotates bits in a left/ NOTE: Converts between 4x epi16,epi32 NOTE: Sign extends each NOTE: Zero extends each epi32,ps/d NOTE: Reinterpret casts !a & b while shifting in sign bits. right while shifting in zeros. right by a number of bits 16 bit floats and 4x 32 bit element from X to Y. Y must element from X to Y. Y must from X to Y. No operation is SSE4.1 ceil NOTE: Packs ints from two NOTE: Converts packed generated.
    [Show full text]
  • Powerpc User Instruction Set Architecture Book I Version 2.01
    PowerPC User Instruction Set Architecture Book I Version 2.01 September 2003 Manager: Joe Wetzel/Poughkeepsie/IBM Technical Content: Ed Silha/Austin/IBM Cathy May/Watson/IBM Brad Frey/Austin/IBM The following paragraph does not apply to the United Kingdom or any country or state where such provisions are inconsistent with local law. The specifications in this manual are subject to change without notice. This manual is provided “AS IS”. Interna- tional Business Machines Corp. makes no warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. International Business Machines Corp. does not warrant that the contents of this publication or the accompanying source code examples, whether individually or as one or more groups, will meet your requirements or that the publication or the accompanying source code examples are error-free. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. Address comments to IBM Corporation, Internal Zip 9630, 11400 Burnett Road, Austin, Texas 78758-3493. IBM may use or distribute whatever information you supply in any way it believes appropriate without incurring any obligation to you. The following terms are trademarks of the International Business Machines Corporation in the United States and/or other countries: IBM PowerPC RISC/System 6000 POWER POWER2 POWER4 POWER4+ IBM System/370 Notice to U.S. Government Users—Documentation Related to Restricted Rights—Use, duplication or disclosure is subject to restrictions set fourth in GSA ADP Schedule Contract with IBM Corporation.
    [Show full text]
  • UM0434 E200z3 Powerpc Core Reference Manual
    UM0434 e200z3 PowerPC core Reference manual Introduction The primary objective of this user’s manual is to describe the functionality of the e200z3 embedded microprocessor core for software and hardware developers. This book is intended as a companion to the EREF: A Programmer's Reference Manual for Freescale Book E Processors (hereafter referred to as EREF). Book E is a PowerPC™ architecture definition for embedded processors that ensures binary compatibility with the user-instruction set architecture (UISA) portion of the PowerPC architecture as it was jointly developed by Apple, IBM, and Motorola (referred to as the AIM architecture). This document distinguishes among the three levels of the architectural and implementation definition, as follows: ● The Book E architecture—Book E defines a set of user-level instructions and registers that are drawn from the user instruction set architecture (UISA) portion of the AIM definition PowerPC architecture. Book E also includes numerous supervisor-level registers and instructions as they were defined in the AIM version of the PowerPC architecture for the virtual environment architecture (VEA) and the operating environment architecture (OEA). Because the operating system resources (such as the MMU and interrupts) defined by Book E differ greatly from those defined by the AIM architecture, Book E introduces many new registers and instructions. ● Freescale Book E implementation standards (EIS)—In many cases, the Book E architecture definition provides a general framework, leaving specific details up to the implementation. To ensure consistency among its Book E implementations, Freescale has defined implementation standards that provide an additional layer of architecture between Book E and the actual devices.
    [Show full text]
  • Why Transcendentals and Arbitrary Precision?
    Why transcendentals and arbitrary precision? Paul Zimmermann, December 15th, 2005 Why transcendentals and arbitrary precision? IEEE 754 Revision Committee, December 15th, 2005 Why Transcendentals? Why transcendentals and arbitrary precision? IEEE 754 Revision Committee, December 15th, 2005 Some transcendentals today Opteron, Linux 2.6.12, gcc 4.0.1, libc 2.3.5: Testing function atan for exponent 0. rounding mode GMP_RNDU: 1.507141 ulp(s) for x=5.27348750514293418412e-01 wrong DR: x=8.71159292701253917812e-01 [-0.505215] Testing function cbrt for exponent 0. rounding mode GMP_RNDN: wrong monotonicity for x=8.90550497574918109578e-01 f(x-)=9.62098454219197263271e-01 not <= f(x)=9.62098454219197152248e-01 Why transcendentals and arbitrary precision? IEEE 754 Revision Committee, December 15th, 2005 Sparc, SunOS 5.7, cc Sun WorkShop 6: Testing function exp for exponent 0. rounding mode GMP_RNDN: 0.659120 ulp(s) for x=9.43344491255437844757e-01 rounding mode GMP_RNDU: wrong DR: x=5.33824498679617898134e-01 [-0.295496] Testing function pow for exponents 0 and 0. rounding mode GMP_RNDN: -0.522792 ulp(s) for x=9.91109071895216686698e-01 t=6.06627312254989226048e-01 Testing function tanh for exponent 0. rounding mode GMP_RNDN: 1.771299 ulp(s) for x=5.19240368581155742334e-01 Why transcendentals and arbitrary precision? IEEE 754 Revision Committee, December 15th, 2005 MIPS R16000, IRIX64 6.5, gcc 3.3: Testing function tan for exponent 10. rounding mode GMP_RNDZ: -6.143332 ulp(s) for x=5.25427198389763360000e+02 wrong DR: x=7.56078520967298570000e+02 [-4.523771] Itanium 1, Linux 2.4.20, gcc 3.2.3, libc 2.2.5: Testing function gamma for exponent 7.
    [Show full text]
  • Fpnew: an Open-Source Multi-Format Floating-Point Unit Architecture For
    1 FPnew: An Open-Source Multi-Format Floating-Point Unit Architecture for Energy-Proportional Transprecision Computing Stefan Mach, Fabian Schuiki, Florian Zaruba, Student Member, IEEE, and Luca Benini, Fellow, IEEE Abstract—The slowdown of Moore’s law and the power wall Internet of Things (IoT) domain. In this environment, achiev- necessitates a shift towards finely tunable precision (a.k.a. trans- ing high energy efficiency in numerical computations requires precision) computing to reduce energy footprint. Hence, we need architectures and circuits which are fine-tunable in terms of circuits capable of performing floating-point operations on a wide range of precisions with high energy-proportionality. We precision and performance. Such circuits can minimize the present FPnew, a highly configurable open-source transprecision energy cost per operation by adapting both performance and floating-point unit (TP-FPU) capable of supporting a wide precision to the application requirements in an agile way. The range of standard and custom FP formats. To demonstrate the paradigm of “transprecision computing” [1] aims at creating flexibility and efficiency of FPnew in general-purpose processor a holistic framework ranging from algorithms and software architectures, we extend the RISC-V ISA with operations on half-precision, bfloat16, and an 8bit FP format, as well as SIMD down to hardware and circuits which offer many knobs to vectors and multi-format operations. Integrated into a 32-bit fine-tune workloads. RISC-V core, our TP-FPU can speed up execution of mixed- The most flexible and dynamic way of performing nu- precision applications by 1.67x w.r.t.
    [Show full text]
  • SPARC Joint Programming Specification 1 Implementation Supplement: Sun Ultrasparc III
    SPARC Joint Programming Specification 1 Implementation Supplement: Sun UltraSPARC III Sun Microsystems Proprietary/Need-to-Know JRC Contributed Material Working Draft 1.0.5, 10 Sep 2002 Part No.: 806-6754-1 Working Draft 1.0.5, 10 Sep 2002 Copyright 2001 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303 U.S.A. All rights reserved. Portions of this document are protected by copyright 1994 SPARC International, Inc. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun logo, SunSoft, SunDocs, SunExpress, and Solaris are trademarks, registered trademarks, or service marks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun™ Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry.
    [Show full text]
  • Release Notes
    Interactive Session Recorder Release Notes Release 6.2 F20208-05 January 2021 Interactive Session Recorder Release Notes, Release 6.2 F20208-05 Copyright © 2014, 2021, Oracle and/or its affiliates. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial computer software documentation" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract.
    [Show full text]
  • Floating Point Exception Tracking and NAN Propagation
    Floating point exception tracking and NAN propagation By Agner Fog. Technical University of Denmark. © 2018-2020 CC-BY. Last updated 2020-04-27. Abstract The most common methods for detecting floating point errors are based on exception trapping or a global status register. These methods are inefficient in modern systems that use out-of-order parallelism and single-instruction-multiple-data (SIMD) parallelism for improving performance. It is argued that a method based on NAN propagation is more efficient and deterministic. Problems with NAN propagation in current systems are discussed. Examples of implementation in the C++ vector class library and in an experimental instruction set named ForwardCom are presented. The IEEE-754 standard for floating point arithmetic may need adjustment to accommodate the needs of modern forms of parallelism. Contents 1 Introduction ....................................................................................................................... 1 2 Exception trapping ............................................................................................................. 2 3 Using a status register ....................................................................................................... 3 4 Using errno ........................................................................................................................ 3 5 Parallel error detection ...................................................................................................... 3 6 Propagation of INF and NAN
    [Show full text]