ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 894 microarchs · 15,770 chips · 105 sources
Arch:
Tier:

c.flwsp

T1 riscv fp insn
Load word into floating-point register from stack
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zcf
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZcf

Summary

Loads a single-precision floating-point value from memory into floating-point register fd. It computes its effective address by adding the zero-extended offset, scaled by 4, to the stack pointer, x2. It expands to flw fd, offset(x2).

Syntax / Encoding

c.flwsp fd, imm(sp) | 011xxxxxxxxxxx10 (mask=0xe003 match=0x6002)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV011xxxxxxxxxxx100xe003 / 0x6002

Operands

NameDescription
immbits [3:2,12,6:4], shifted << 2
fdbits [11:7]

Reference Notes

Loads a single-precision floating-point value from memory into floating-point register fd.
It computes its effective address by adding the zero-extended offset, scaled by 4,
to the stack pointer, x2.
It expands to `flw` `fd, offset(x2)`.