C.SW
Compressed Store Word
C.SW rs2', offset(rs1')
Stores a 32-bit word to memory using a compressed encoding.
Details
Stores the low 32 bits of rs2′ to memory at a 6-bit unsigned offset from rs1′.
Pseudocode Operation
M[R[rs1'] + offset][31:0] = R[rs2'];
Example
C.SW x8, 4(x9)
Encoding
Binary Layout
110
15:13
imm
rs1'
12:10
imm
rs2'
9:7
00
6:5
Operands
-
rs2'
Source (x8-x15) -
rs1'
Base (x8-x15) -
offset
Offset