C.LW
Compressed Load Word
C.LW rd', offset(rs1')
Loads a 32-bit word from memory using a compressed encoding.
Details
Loads a 32-bit word from memory at a 6-bit unsigned offset from rs1′ into rd′.
Pseudocode Operation
R[rd'] = M[R[rs1'] + offset][31:0];
Example
C.LW x8, 4(x9)
Encoding
Binary Layout
?
31:16
010
15:13
c_uimm7hi
12:10
rs1_p
9:7
c_uimm7lo
6:5
rd_p
4:2
00
1:0
Operands
-
rd'
Dest (x8-x15) -
rs1'
Base (x8-x15) -
offset
Offset