risc-v

Definition

Floating-Point Register (RISC-V)

A floating-point register is a register used to store floating-point values.

RISC-V provides 32 floating-point registers named f0 to f31. They also have conventional alias names such as ft0, fs0, and fa0.

Register Set

NameRegister NumberUsage
ft0-7f0-7Temporary variables
fs0-1f8-9Saved variables
fa0-1f10-11Function arguments/return values
fa2-7f12-17Function arguments
fs2-11f18-27Saved variables
ft8-11f28-31Temporary variables

Width

The width of a floating-point register is the width of the highest implemented floating-point precision.

If multiple floating-point extensions are implemented, lower-precision values occupy the lower bits of the register.