Does it use integer or floating-point registers?
rd, rs1, and rs2 are floating-point register fields. Integer registers interact with FP data through conversion, move, or load/store instructions.
Performs single-precision floating-point addition: rd = rs1 + rs2, rounded by the rm field or dynamic frm.
FADD.S adds the single-precision values in rs1 and rs2 and writes the result to rd. This R-type instruction uses the OP-FP opcode with fmt=S(00); rm selects static rounding and rm=111 uses frm. Its applicable exception flags are NV, OF, and NX, accrued in fflags. Subnormals follow IEEE 754-2008 rules; when FLEN is greater than 32, inputs must be valid NaN-boxed single-precision values or are treated as canonical NaN.
Shows the F-extension single-precision OP-FP flow: decode fields, read FP operands, perform FADD semantics, then write rd.
The word is split as an R-type OP-FP instruction; single-precision OP-FP instructions use opcode 1010011.
This animation accepts only finite whitelisted examples whose inputs and result are exactly checkable; this example needs no rounding and sets no FP exception flags. NaN, infinity, overflow, underflow, and inexact paths are covered in static text.
This animation accepts only finite whitelisted examples whose inputs and result are exactly checkable; this example needs no rounding and sets no FP exception flags. NaN, infinity, overflow, underflow, and inexact paths are covered in static text.
This animation shows only F-extension ISA-visible OP-FP encoding, example numeric results, and fflags relationship; it does not model FPU pipelines, latency, every IEEE 754 corner case, or microarchitecture.
FADD.S is an OP-FP arithmetic instruction from the RISC-V F extension. It reads two single-precision FP registers, rounds by rm/frm, writes the result to FP register rd, and records FP exceptions in fflags.
Understand this scenario with real code like «fadd.s f0, f1, f2 # f0 = f1+f2 (RNE)».
Understand this scenario with real code like «fadd.s f0, f1, f2 # f0 = f1+f2 (RNE)».
rd, rs1, and rs2 are floating-point register fields. Integer registers interact with FP data through conversion, move, or load/store instructions.
rm selects the rounding mode, or uses frm for the dyn encoding. For inexact results, the rounding mode affects the written value and may set fflags.
The F extension records floating-point exception flags in fflags; this page does not describe them as integer condition codes or integer overflow traps.