RISC-V ISA Explorer · Bit Manipulation (Zb*)

Zba: Address-Generation Bitmanip

Ratified 2021-06 · version 1.0.0

Shift-and-add instructions that compute an array element address in one operation instead of several.

Typical use: Array indexing and pointer arithmetic

Specification

Open Zba in the explorer

Dependencies

Required by

Instructions (8)

MnemonicNameEncodingMatchMask
ADD.UWAdd unsigned word0000100----------000-----01110110x800003b0xfe00707f
SH1ADDShift left by 1 and add0010000----------010-----01100110x200020330xfe00707f
SH1ADD.UWShift unsigned word left by 1 and add0010000----------010-----01110110x2000203b0xfe00707f
SH2ADDShift left by 2 and add0010000----------100-----01100110x200040330xfe00707f
SH2ADD.UWShift unsigned word left by 2 and add0010000----------100-----01110110x2000403b0xfe00707f
SH3ADDShift left by 3 and add0010000----------110-----01100110x200060330xfe00707f
SH3ADD.UWShift unsigned word left by 3 and add0010000----------110-----01110110x2000603b0xfe00707f
SLLI.UWShift left unsigned word (Immediate)000010-----------001-----00110110x800101b0xfc00707f