Webcentive RISC-V Reference

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

31262520191514121176210
000010shamtrs1001rd0011011

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.

FieldBitsriscv-opcodes name
shamt25:20shamtd
rs119:15rs1
rd11:7rd

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.

Specification and related pages