Register Guide
RISC-V frm / frm Register: Floating-point dynamic rounding mode
frm is the floating-point dynamic rounding mode register, setting rounding direction for FP operations (RNE/RTZ/RDN/RUP/RMM).
ABI name: frm; physical register: frm.
Save rule: Saved by software when context requires.
Read it through its psABI role first, then inspect how each instruction reads or writes it.
Physical Name frmABI Name frmSave Rule Saved by software when context requires
Role
Floating-point dynamic rounding mode
Convention
Architectural state / CSR semantics
Remember This First
The calling convention listed for this entry is: Architectural state / CSR semantics.
RISC-V Floating-Point ISA Reference
ABI register
frm is the floating-point dynamic rounding mode register, setting rounding direction for FP operations (RNE/RTZ/RDN/RUP/RMM).
Preserved across calls: Saved by software when context requires
RISC-V Unprivileged ISA Manual, floating-point CSRsWhen It Fits Best
- - Use it according to the documented role: Floating-point dynamic rounding mode.
- - Consult the applicable ISA or ABI specification for concrete read, write, or execution semantics.
When Not To Use It This Way
- - Do not apply the integer temporary-register t* rules to this entry.
- - Do not infer behavior not defined by this page or the applicable specification from the ABI name.
What Happens Around A Call
1
The calling convention listed for this entry is: Architectural state / CSR semantics.
2
The save rule listed for this entry is: Saved by software when context requires.
Read The Documented Role
Examples explain the rule, not a complete program# frm / frm
# Floating-point dynamic rounding mode
# Architectural state / CSR semantics