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

c.fswsp

T1 riscv alu insn
Store single-precision value to 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

Stores a single-precision floating-point value in floating-point register fs2 to memory. It computes an effective address by adding the zero-extended offset, scaled by 4, to the stack pointer, x2. It expands to fsw fs2, offset(x2).

Syntax / Encoding

c.fswsp fs2, imm(sp) | 111xxxxxxxxxxx10 (mask=0xe003 match=0xe002)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV111xxxxxxxxxxx100xe003 / 0xe002

Operands

NameDescription
immbits [8:7,12:9], shifted << 2
fs2bits [6:2]

Reference Notes

Stores a single-precision floating-point value in floating-point register fs2 to memory.
It computes an effective address by adding the zero-extended offset, scaled by 4,
to the stack pointer, x2.
It expands to `fsw` `fs2, offset(x2)`.