c.swsp

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

Synopsis

c.swsp xs2, imm(sp)

Encoding

Type:

012678912131510xs2immimm110

RISC-V Instruction Encoder/Decoder

open c.swsp in rvcodecjs

Availability