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