ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,761 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

c.zext.b

T1 riscv alu insn
Zero-extend byte, 16-bit encoding
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zcb, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZcb, Zkt-DIT

Summary

Takes a single source/destination operand. This instruction zero-extends the least-significant byte of the source to XLEN by inserting 0's into all of the bits more significant than 7.

Syntax / Encoding

c.zext.b xd | 100111xxx1100001 (mask=0xfc7f match=0x9c61)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV100111xxx11000010xfc7f / 0x9c61

Operands

NameDescription
xdbits [9:7]