Webcentive RISC-V Reference

fld

Floating-Point Load Double-Precision

Extension
D
XLEN
RV32 and RV64
Assembly (riscv-unified-db)
fld fd, imm(xs1)
Length
32-bit

Encoding

3120191514121176210
imm[11:0]rs1011rd0000111

Match 0x00003007, mask 0x0000707f. Source: fld rd rs1 imm12 14..12=3 6..2=0x01 1..0=3 in riscv-opcodes/extensions/rv_d.

FieldBitsriscv-opcodes name
imm[11:0]31:20imm12
rs119:15rs1
rd11:7rd

Description

The fld instruction loads a double-precision floating-point value from memory into floating-point register fd. It is guaranteed to execute atomically if the effective address is naturally aligned and XLEN≥64. It doesn't modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.

Description from riscv-unified-db, reformatted.

Specification and related pages