ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

fflags

T1 riscv register register
Floating-Point Accrued Exceptions
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (F)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeU
ExtensionsF

Summary

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.

Syntax / Encoding

CSR 0x001 (U-mode, RW)

Bitfields (5)

BitsFieldDescription
4NVSet by hardware when a floating point operation is invalid and stays set until explicitly cleared by software.
3DZSet by hardware when a floating point divide attempts to divide by zero and stays set until explicitly cleared by software.
2OFSet by hardware when a floating point operation overflows and stays set until explicitly cleared by software.
1UFSet by hardware when a floating point operation underflows and stays set until explicitly cleared by software.
0NXSet by hardware when a floating point operation is inexact and stays set until explicitly cleared by software.

Reference Notes

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.