Zbs Instructions
8 RISC-V instructions in this extension - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | Format | Summary |
|---|---|---|---|
| BCLR | BCLR rd, rs1, rs2 | R-Type | Clears a single bit in rs1 at the index specified by rs2. |
| BCLRI | BCLRI rd, rs1, imm | I-Type | Clears a single bit in rs1 at the index specified by an immediate. |
| BEXT | BEXT rd, rs1, rs2 | R-Type | Extracts the value of a single bit (0 or 1) at the index specified by rs2. The result is placed in the LSB of rd. |
| BEXTI | BEXTI rd, rs1, imm | I-Type | Extracts the value of a single bit (0 or 1) at the index specified by an immediate. |
| BINV | BINV rd, rs1, rs2 | R-Type | Inverts (toggles) a single bit in rs1 at the index specified by rs2. |
| BINVI | BINVI rd, rs1, imm | I-Type | Inverts (toggles) a single bit in rs1 at the index specified by an immediate. |
| BSET | BSET rd, rs1, rs2 | R-Type | Sets a single bit in rs1 at the index specified by rs2. |
| BSETI | BSETI rd, rs1, imm | I-Type | Sets a single bit in rs1 at the index specified by an immediate. |