add.uw

Operands

reg, reg, reg

Add unsigned word : Set t1 to the low 32 bits of t2, zero extended, plus t3. Adds an unsigned 32 bit index to a 64 bit base without a separate zero extension (64bit)

Variants

  • Add unsigned word : Set t1 to the low 32 bits of t2, zero extended, plus t3. Adds an unsigned 32 bit index to a 64 bit base without a separate zero extension (64bit) add.uw t1,t2,t3

This example runs on RV64.

.text
li t0, -2147483647
li t1, 1
# t0=0xFFFFFFFF80000001 is treated as an unsigned low word, then t1=1 is added; add.uw writes 2147483650 to t2.
add.uw t2, t0, t1