binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v

RISC-V: Add support for Zibi extension

RISC-V toolchain gains support for the Zibi extension, adding new branch instructions.

The RISC-V toolchain now supports the Zibi extension, which introduces two new branch instructions: beqi and bnei. These instructions compare a register with a small immediate value and provide the same branch range as register-based branches. The immediate value must be -1 or between 1 and 31, with -1 encoded as 0. This extension is currently at version 0.9.

In Details

This commit adds support for the RISC-V Zibi extension to various components of the toolchain, including BFD, GAS, and opcodes. The Zibi extension introduces beqi (branch if equal immediate) and bnei (branch if not equal immediate) instructions. These instructions allow comparison of a register against a small immediate value (-1 or 1-31), with a branch range similar to the standard register-based branches. The specification version for Zibi is noted as 0.9. Support includes encoding, decoding, and test cases for these new instructions.

For Context
RISC-V
An open-source instruction set architecture (ISA) based on RISC principles. It is designed to be simple, modular, and extensible.
Zibi extension
A RISC-V extension that adds two new branch instructions, beqi and bnei, which compare a register with a small immediate value.
Instruction Set Architecture (ISA)
The part of the processor visible to the programmer. It defines the set of instructions that a processor can execute.
Immediate value
A value that is explicitly specified as part of an instruction, rather than being fetched from a memory address or register.
Branch instructions
Instructions that alter the normal sequential flow of program execution by jumping to a different instruction address, typically based on a condition.
Filed Under: risc-visaextensionbranching