zext.h

Zero-extends the least-significant halfword of the source to XLEN by inserting 0's into all of the bits more significant than 15. [NOTE] The *zext.h* instruction is a pseudo-op for `pack` when `Zbkb` is implemented and XLEN == 32. [NOTE] The *zext.h* instruction is a pseudo-op for `packw` when `Zbkb` is implemented and XLEN == 64.

Synopsis

zext.h xd, xs1

Encoding

Type:

067111214151920310110011xd100xs1000010000000

RISC-V Instruction Encoder/Decoder

open zext.h in rvcodecjs

Availability