Is it always equivalent to a same-named 32-bit instruction?
Not always. Some C/Zc instructions compress common 32-bit operations, while others have dedicated stack-frame or table-jump semantics.
16-bit zero-extend byte (least-significant 8 bits)
C.ZEXT.B (Zcb, CU format) zero-extends LSB of rsd' to XLEN, filling upper bits with zero. rsd' limited to x8-x15. Equivalent to andi rd',rd',0xFF. Part of Zcb, depends on Zca.
C.ZEXT.B is the 16-bit encoding form for compressed zero-extend byte; its semantics and encodable register/immediate ranges must be read from the official C extension rules.
Understand this scenario with real code like «c.zext.b x10 # x10 = EXTZ(x10[7:0])».
Not always. Some C/Zc instructions compress common 32-bit operations, while others have dedicated stack-frame or table-jump semantics.
Many 16-bit encodings can represent only a compressed register subset or fixed registers such as sp, ra, a0/a1.