Does SH1ADD.UW access memory?
No. It only reads and writes integer registers; any memory access must be performed by a separate load or store instruction.
Shift unsigned word left by 1 and add (RV64)
Zero-extends lower 32 bits of rs1 as unsigned word, shifts left by 1, adds rs2. For unsigned word-indexed array address generation. Part of Zba.
SH1ADD.UW is a B/Zba instruction for zero-extend low word, shift left 1, and add. This page is checked against the official B extension semantics, with emphasis on XLEN, W suffixes, .uw suffixes, and bitwise or rotate boundaries.
Understand this scenario with real code like «sh1add.uw x10, x11, x12 ; x10 = x12 + (zero_ext(x11[31:0]) << 1)».
No. It only reads and writes integer registers; any memory access must be performed by a separate load or store instruction.
Except that W-suffixed forms produce a 32-bit result then sign-extend and .uw forms first extract a 32-bit unsigned operand, the result is written to rd at XLEN width.