What is the offset unit for c.fswsp?
The encoded immediate is scaled by access width: 8 bytes for double-precision and 4 bytes for single-precision.
Store SP FP to sp+offset. CSS format, RV32FC.
c.fswsp in RV32FC, stores the 32-bit single-precision value from floating-point fs2 to sp plus a zero-extended offset scaled by 4.
c.fswsp in RV32FC, stores the 32-bit single-precision value from floating-point fs2 to sp plus a zero-extended offset scaled by 4.
Understand this scenario with real code like «c.fswsp f0, 16(sp) # *(sp+16) = f0».
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.