lwu

Operands

reg, [imm(reg) / %lo(id)], (reg)

Set t1 to contents of effective memory word address without sign-extension (64bit)

Variants

  • Set t1 to contents of effective memory word address without sign-extension (64bit) lwu t1, -100(t2)
  • Load from Address (64bit) lwu t1,%lo(label)(t2)

This example runs on RV64.

# value is initialized and naturally aligned for this operation.
.data
value: .word 0x817fff80
.text
la t0, value
# The word 0x817FFF80 zero-extends to RV64; lwu writes 2172649344 (0x817FFF80) to t2.
lwu t2, 0(t0)