Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 868 Bytes

zbs.adoc

File metadata and controls

59 lines (47 loc) · 868 Bytes

Zbs: Single-bit instructions

Frozen

The Zbs extension is frozen.

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.

RV32 RV64 Mnemonic Instruction

bclr rd, rs1, rs2

[insns-bclr]

bclri rd, rs1, imm

[insns-bclri]

bext rd, rs1, rs2

[insns-bext]

bexti rd, rs1, imm

[insns-bexti]

binv rd, rs1, rs2

[insns-binv]

binvi rd, rs1, imm

[insns-binvi]

bset rd, rs1, rs2

[insns-bset]

bseti rd, rs1, imm

[insns-bseti]