English
Language : 

GMS30C2216 Datasheet, PDF (107/320 Pages) Hynix Semiconductor – 16/32 BIT RISC/DSP
Instruction Set
3-45
Invalid Operation Exception (V)
The Invalid Operation exception is signaled if one or both of the operand are invalid for an
implemented operations. The MIPS ISA defines the result, when the exception occurs
without a trap, as a quiet Not a Number (NaN). The invalid operations are:
• Addition or subtraction: magnitude subtraction of infinities, such as: ( +inf ) + ( -inf )
or ( - inf ) - ( -inf )
• Multiplication: 0 times +inf, with any signs.
• Division: 0/0, or inf/inf, with any signs.
• Conversion of a floating-point number to a fixed-point format when an overflow, or
operand value of infinity or NaN, precludes a faithful representation in that format.
• Comparison of predicates involving < or > without ?, when the operands are
unordered.
• Any arithmetic operation on a signaling NaN. A move (MOV) operation is not
considered to be an arithmetic operation, but absolute value (ABS) and negate (NEG)
are considered to be arithmetic operations and cause this exception if one or both
operands is a signaling NaN.
• Square root: sqrt(x), where x is less than zero.
Floating-point Trap Enabled Results: The original operand values are undisturbed.
Floating-point Trap Disabled Results: The FPU always signals an Unimplemented
exception because it does not create the NaN that the IEEE standard specifies should be
returned these circumstances.
Underflow Exception (U)
Two related events contribute to the Underflow exception:
• The creation of a tiny non-zero result between +2Emin and -2Emin which can cause some
later exception because it is so tiny.
• The extraordinary loss of accuracy during the approximation of such tiny numbers by
denormalized numbers.
Floating-point Trap Enabled Results: When an underflow trap is enabled, underflow is
signaled when tininess is detected regardless of loss of accuracy. If underflow traps are
enabled, the result register is not modified, and the source registers are preserved.
Floating-point Trap Disabled Results: When an underflow trap is not enabled, underflow is
signaled (using the underflow flag) only when both tininess and loss of accuracy have been
detected. The delivered result might be zero, denormalized, or +2Emin and -2Emin .