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

c.sdsp

T1 riscv alu insn
Store doubleword to stack
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

Stores a 64-bit value in register xs2 to memory. It computes an effective address by adding the zero-extended offset, scaled by 8, to the stack pointer, x2. It expands to sd xs2, offset(x2).

Syntax / Encoding

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

Binary Encodings (2)

WidthFormatBit PatternMask / Match
16RV32111xxxxxxxxxxx100xe003 / 0xe002
16RV64111xxxxxxxxxxx100xe003 / 0xe002

Operands

NameDescription
xs2bits [6:2], not [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31]
immbits [9:7,12:10], shifted << 3