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

c.flw

T1 riscv alu insn
Load single-precision
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 register fd. It computes an effective address by adding the zero-extended offset, scaled by 4, to the base address in register xs1. It expands to flw fd, offset(xs1).

Syntax / Encoding

c.flw fd, imm(xs1) | 011xxxxxxxxxxx00 (mask=0xe003 match=0x6000)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV011xxxxxxxxxxx000xe003 / 0x6000

Operands

NameDescription
immbits [5,12:10,6], shifted << 2
fdbits [4:2]
xs1bits [9:7]

Reference Notes

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