Home/Instructions/VSEXT-VF8
VSEXT.VF8

RISC-V VSEXT.VF8 Instruction Details

Instruction ManualR-type

Sign-extend SEW/8 source elements to SEW destination elements.

Instruction Syntax

vsext.vf8 vd, vs2, vm
Operand Breakdown
Destination rd: register receiving the operation result.
Source rs1: register holding the first operand.
Source rs2: register holding the second operand.
VVector IntegerSign-Extend

Instruction Behavior

VSEXT.VF8 reads narrower signed source elements, sign-extends them to the current SEW width, and writes vd.

Quick Understanding & Search Notes

VSEXT.VF8 promotes a narrow signed integer vector to the current SEW.

Source element width is SEW/8; destination element width is SEW.
The sign bit is extended into the high bits; use VZEXT for unsigned extension.
The destination/source EEW ratio affects legal register-group overlap.

Common Usage Scenarios

Narrow Data Widening

Understand this scenario with real code like «vsext.vf8 v8, v12, v0.t».

Type Promotion

Understand this scenario with real code like «vsext.vf8 v8, v12, v0.t».

Pre-Use Checklist

Syntax Check
  • Confirm the current instruction format is R-type.
  • Confirm the operand order matches the example.
Semantic Check
  • Ensure the destination register usage is compatible with the calling convention.
  • Confirm this is not the lower-level form of a pseudo-instruction expansion.

Pitfalls / Common Confusions

Source EMUL=LMUL/8; can be fractional
Sign bit fill (differs from vzext zero-fill)

FAQ

Is VSEXT.VF8 zero extension?

No. VSEXT performs sign extension; zero extension uses VZEXT.VF2/VF4/VF8.