What is the offset unit for c.fsw?
The encoded immediate is scaled by access width: 8 bytes for double-precision and 4 bytes for single-precision.
Store SP FP to memory. CS format, RV32FC.
c.fsw in RV32FC, stores the 32-bit single-precision value from fs2' to rs1' plus a zero-extended offset scaled by 4.
c.fsw in RV32FC, stores the 32-bit single-precision value from fs2' to rs1' plus a zero-extended offset scaled by 4.
Understand this scenario with real code like «c.fsw f8, 0(x10)».
The encoded immediate is scaled by access width: 8 bytes for double-precision and 4 bytes for single-precision.
Yes. Double-precision forms require D, single-precision forms require F, and all require C.