BCLRI
Bit Clear Immediate
BCLRI rd, rs1, imm
Clears a single bit in rs1 at the index specified by an immediate.
Encoding
Binary Layout
010010
31:26
shamtd
25:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source -
imm
Index
Example
BCLRI x10, x11, 3
// Clear bit 3.
Related
More in Zbs
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
BCLRI clears the single bit of rs1 selected by the immediate, writing the result to rd.
Operation
R[rd] = R[rs1] & ~(1 << imm);