fflags
Floating-Point Accrued Exceptions
The accrued exception flags indicate the exception conditions that have arisen on any floating-point arithmetic instruction since the field was last reset by software.
The base RISC-V ISA does not support generating a trap on the setting of a floating-point exception flag.
As allowed by the standard, we do not support traps on floating-point exceptions in the F extension, but instead require explicit checks of the flags in software. We considered adding branches controlled directly by the contents of the floating-point accrued exception flags, but ultimately chose to omit these instructions to keep the ISA simple.
Fields
NV
- Location
-
fflags[4]
- Description
-
Set by hardware when a floating point operation is invalid and stays set until explicitly cleared by software.
- Type
RW-H |
Read-Write with Hardware update Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write. |
DZ
- Location
-
fflags[3]
- Description
-
Set by hardware when a floating point divide attempts to divide by zero and stays set until explicitly cleared by software.
- Type
RW-H |
Read-Write with Hardware update Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write. |
OF
- Location
-
fflags[2]
- Description
-
Set by hardware when a floating point operation overflows and stays set until explicitly cleared by software.
- Type
RW-H |
Read-Write with Hardware update Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write. |
UF
- Location
-
fflags[1]
- Description
-
Set by hardware when a floating point operation underflows and stays set until explicitly cleared by software.
- Type
RW-H |
Read-Write with Hardware update Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write. |
NX
- Location
-
fflags[0]
- Description
-
Set by hardware when a floating point operation is inexact and stays set until explicitly cleared by software.
- Type
RW-H |
Read-Write with Hardware update Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write. |