vsetvli

Sets the vector length register vl and vector type register vtype based on immediate values. Configures SEW, LMUL, and other vector parameters for subsequent vector operations.

Synopsis

vsetvli xd, xs1, vtypei

Encoding

Type:

06711121415192030311010111xd111xs1vtypei0
funct3: 111
opcode: 1010111

RISC-V Instruction Encoder/Decoder

open vsetvli in rvcodecjs

Availability