zext.b
Pseudo-op
- Extension
- RV32I/RV64I base integer
- XLEN
- RV32 and RV64
- Operand fields
rs1,rd- Length
- 32-bit
Encoding
listed in riscv-opcodes as a pseudo-op of andi
| 3120 | 1915 | 1412 | 117 | 62 | 10 | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 000011111111 | rs1 | 111 | rd | 00100 | 11 | ||||||||||||||||||||||||||
Match 0x0ff07013, mask 0xfff0707f. Source: $pseudo_op rv_i::andi zext.b rd rs1 31..20=0xff 14..12=7 6..2=0x04 1..0=3 in riscv-opcodes/extensions/rv_i.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
Description
Encoding only. riscv-opcodes lists zext.b as a pseudo-op of andi: the same encoding as andi 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