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

c.ld

T1 riscv alu insn
Load double
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zca, Zclsd
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZca, Zclsd

Summary

Loads a 64-bit value from memory into register xd. It computes an effective address by adding the zero-extended offset, scaled by 8, to the base address in register xs1. It expands to ld xd, offset(xs1). For RV32, if the Zclsd extension is enabled, this instruction loads a 64-bit value into registers xd and xd+1. It computes an effective address by adding the zero-extended imm, scaled by 8, to the base address in…

Syntax / Encoding

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

Binary Encodings (2)

WidthFormatBit PatternMask / Match
16RV32011xxxxxxxxxxx000xe003 / 0x6000
16RV64011xxxxxxxxxxx000xe003 / 0x6000

Operands

NameDescription
immbits [6:5,12:10], shifted << 3
xdbits [4:2], not [1, 3, 5, 7]
xs1bits [9:7]

Reference Notes

Loads a 64-bit value from memory into register xd.
It computes an effective address by adding the zero-extended offset, scaled by 8,
to the base address in register xs1.
It expands to `ld` `xd, offset(xs1)`.
For RV32, if the Zclsd extension is enabled, this instruction loads a 64-bit value into registers xd and xd+1. It computes an effective address by adding the zero-extended imm, scaled by 8, to the base address in register xs1.