ZEXT.H

Zero Extend Halfword

ZEXT.H rd, rs1

Zero-extends the lowest halfword (16 bits) to XLEN bits.

Details

ZEXT.H zero-extends the least-significant halfword of rs1 to XLEN bits, writing to rd.

Pseudocode Operation

R[rd] = zext(R[rs1][15:0]);

Example

ZEXT.H x10, x11

Encoding

Binary Layout
000010000000
31:20
rs1
19:15
100
14:12
rd
11:7
0111011
6:0
 
Format I-Type
Opcode 0x0800403B
Extension Zbb

Operands

  • rd
    Destination register (integer)
  • rs1
    Source