ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

c.fldsp

T1 riscv fp insn
Load doubleword 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 Zcd
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZcd

Summary

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

Syntax / Encoding

c.fldsp fd, imm(sp) | 001xxxxxxxxxxx10 (mask=0xe003 match=0x2002)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV001xxxxxxxxxxx100xe003 / 0x2002

Operands

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

Reference Notes

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