SEX.H
Sign Extend Halfword
SEX.H rd, rs1
Sign-extends the lowest halfword (16 bits) to XLEN bits.
Details
SEX.H sign-extends the least-significant halfword of rs1 to XLEN bits (alias of SEXT.H).
Pseudocode Operation
R[rd] = sext(R[rs1][15:0]);
Example
SEX.H x10, x11
Encoding
Binary Layout
0110000
31:25
00101
24:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source