Webcentive RISC-V Reference

add.uw

Add unsigned word

Extension
Zba
XLEN
RV64 only
Assembly (riscv-unified-db)
add.uw xd, xs1, xs2
Length
32-bit

Encoding

31252420191514121176210
0000100rs2rs1000rd0111011

Match 0x0800003b, mask 0xfe00707f. Source: add.uw rd rs1 rs2 31..25=4 14..12=0 6..2=0x0E 1..0=3 in riscv-opcodes/extensions/rv64_zba.

FieldBitsriscv-opcodes name
rs224:20rs2
rs119:15rs1
rd11:7rd

Description

Performs an XLEN-wide addition between xs2 and the zero-extended least-significant word of xs1.

Description from riscv-unified-db, reformatted.

Operation

X[xd] = X[xs2] + X[xs1][31:0];

Pseudocode in riscv-unified-db’s IDL, quoted unchanged.

Specification and related pages