LWU
Load Word Unsigned
LWU rd, offset(rs1)
Loads a 32-bit word from memory and zero-extends it to 64 bits.
Details
LWU loads a 32-bit word from memory at address rs1+sext(offset), zero-extends it to 64 bits, and writes it to rd. Unlike LW, it does not sign-extend.
Pseudocode Operation
R[rd] = zext(M[R[rs1] + sext(offset)][31:0]);
Example
LWU x6, 12(x2)
Encoding
Binary Layout
imm[11:0]
31:20
rs1
19:15
110
14:12
rd
11:7
0000011
6:0
Operands
-
rd
Destination Register -
rs1
Base Address -
offset
Byte Offset