Chapter 7
194 MIPS R4000 Microprocessor User's Manual
Division-by-Zero Exception (Z)
The Division-by-Zero exception is signaled on an implemented divide
operation if the divisor is zero and the dividend is a finite nonzero number.
Software can simulate this exception for other operations that produce a
signed infinity, such as ln(0), sec(π/2), csc(0), or 0
–1.
Trap Enabled Results: The result register is not modified, and the source
registers are preserved.
Trap Disabled Results: The result, when no trap occurs, is a correctly
signed infinity.
Overflow Exception (O)
The Overflow exception is signaled when the magnitude of the rounded
floating-point result, with an unbounded exponent range, is larger than
the largest finite number of the destination format. (This exception also
sets the Inexact exception and Flag bits.)
Trap Enabled Results: The result register is not modified, and the source
registers are preserved.
Trap Disabled Results: The result, when no trap occurs, is determined by
the rounding mode and the sign of the intermediate result (as listed in
Table 7-1).