Does add.uw access memory?
No. It reads integer register operands and writes rd only.
Add unsigned word: zero-extend lower word of rs1 and add to rs2 (RV64)
add.uw is an RV64 Zba instruction. It zero-extends the low 32 bits of rs1, adds that value to rs2 using XLEN-width addition, and writes rd.
add.uw is commonly used for RV64 address generation: zero-extend rs1[31:0], then add rs2.
Understand this scenario with real code like «add.uw x10, x11, x12».
Understand this scenario with real code like «add.uw x10, x11, x12».
No. It reads integer register operands and writes rd only.
add.uw zero-extends rs1[31:0] and performs an XLEN add with rs2; addw performs a 32-bit add and sign-extends bit 31 to XLEN.