Webcentive RISC-V Reference

Zbs instructions

Single-bit instructions

The single-bit instructions provide a mechanism to set, clear, invert, or extract a single bit in a register. The bit is specified by its index

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zbs.adoc.

Instructions (8)

MnemonicName (riscv-unified-db)XLEN
bclrSingle-Bit clear (Register)RV32 and RV64
bclriSingle-Bit clear (Immediate)RV32 and RV64
bextSingle-Bit extract (Register)RV32 and RV64
bextiSingle-Bit extract (Immediate)RV32 and RV64
binvSingle-Bit invert (Register)RV32 and RV64
binviSingle-Bit invert (Immediate)RV32 and RV64
bsetSingle-Bit set (Register)RV32 and RV64
bsetiSingle-Bit set (Immediate)RV32 and RV64