Webcentive RISC-V Reference

bnez

Pseudo-op

Extension
RV32I/RV64I base integer
XLEN
RV32 and RV64
Operand fields
bimm12hi, rs1, bimm12lo
Length
32-bit

Encoding

listed in riscv-opcodes as a pseudo-op of bne

31252420191514121176210
imm[12|10:5]00000rs1001imm[4:1|11]1100011

Match 0x00001063, mask 0x01f0707f. Source: $pseudo_op rv_i::bne bnez bimm12hi rs1 bimm12lo 24..20=0x0 14..12=1 6..2=0x18 1..0=3 in riscv-opcodes/extensions/rv_i.

FieldBitsriscv-opcodes name
imm[12|10:5]31:25bimm12hi
rs119:15rs1
imm[4:1|11]11:7bimm12lo

Description

Encoding only. riscv-opcodes lists bnez as a pseudo-op of bne: the same encoding as bne with the fixed fields shown above.

Specification and related pages