add.uw
Add unsigned word
- Extension
- Zba
- XLEN
- RV64 only
- Assembly (riscv-unified-db)
add.uw xd, xs1, xs2- Length
- 32-bit
Encoding
| 3125 | 2420 | 1915 | 1412 | 117 | 62 | 10 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0000100 | rs2 | rs1 | 000 | rd | 01110 | 11 | |||||||||||||||||||||||||
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.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rs2 | 24:20 | rs2 |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
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.