ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

c.sext.h

T1 riscv alu insn
Sign-extend halfword, 16-bit encoding
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zbb, Zcb
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZbb, Zcb

Summary

Takes a single source/destination operand. This instruction sign-extends the least-significant halfword of the source to XLEN by copying the most-significant bit in the halfword (i.e., bit 15) to all of the more-significant bits.

Syntax / Encoding

c.sext.h xd | 100111xxx1101101 (mask=0xfc7f match=0x9c6d)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV100111xxx11011010xfc7f / 0x9c6d

Operands

NameDescription
xdbits [9:7]

Reference Notes

Takes a single source/destination operand.
This instruction sign-extends the least-significant halfword of the source to XLEN by copying
the most-significant bit in the halfword (i.e., bit 15) to all of the more-significant bits.