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
| 3125 | 2420 | 1915 | 1412 | 117 | 62 | 10 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| imm[12|10:5] | 00000 | rs1 | 001 | imm[4:1|11] | 11000 | 11 | |||||||||||||||||||||||||
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.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| imm[12|10:5] | 31:25 | bimm12hi |
| rs1 | 19:15 | rs1 |
| imm[4:1|11] | 11:7 | bimm12lo |
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
- The RISC-V Instruction Set Manual: src/unpriv/rv32.adoc (RV32I/RV64I base integer)
- RV32I/RV64I base integer instruction listing