
7. Floating-Point Exceptions

By retrieving an instruction using the processor Exception Program Counter (EPC) register, the trap handler determines:
On Overflow or Underflow exceptions encountered on floating-point conversions, and on Invalid Operation and Divide-by-Zero exceptions, the trap handler gains access to the operand values by examining the source registers of the instruction.
The IEEE Standard 754 recommends that, if enabled, the overflow and underflow traps take precedence over a separate inexact trap. This prioritization is accomplished in software; hardware sets the bits for both the Inexact exception and the Overflow or Underflow exception.





Generated with CERN WebMaker
![]()