slli.uw
Shift left unsigned word (Immediate)
- Extension
- Zba
- XLEN
- RV64 only
- Assembly (riscv-unified-db)
slli.uw xd, xs1, shamt- Length
- 32-bit
Encoding
| 3126 | 2520 | 1915 | 1412 | 117 | 62 | 10 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 000010 | shamt | rs1 | 001 | rd | 00110 | 11 | |||||||||||||||||||||||||
Match 0x0800101b, mask 0xfc00707f. Source: slli.uw rd rs1 31..26=2 shamtd 14..12=1 6..2=0x06 1..0=3 in riscv-opcodes/extensions/rv64_zba.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| shamt | 25:20 | shamtd |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
Description
Takes the least-significant word of xs1, zero-extends it, and shifts it left by the immediate.
Note: This instruction is the same as slli with zext.w performed on xs1 before shifting.
Description from riscv-unified-db, reformatted.
Operation
X[xd] = X[xs1][31:0] << shamt;
Pseudocode in riscv-unified-db’s IDL, quoted unchanged.