sext.b

Sign-extends the least-significant byte in the source to XLEN by copying the most-significant bit in the byte (i.e., bit 7) to all of the more-significant bits.

Synopsis

sext.b xd, xs1

Encoding

Type:

067111214151920310010011xd001xs1011000000100
funct7: 0110000
funct3: 001
opcode: 0010011

RISC-V Instruction Encoder/Decoder

open sext.b in rvcodecjs

Availability