VSETIVLI
Vector Set VL Immediate
VSETIVLI rd, uimm, vtypei
Sets vector length (VL) and type (VTYPE) using a 5-bit immediate for the requested length.
Details
Sets the vector length (vl) and vector type (vtype) registers based on the requested application vector length (AVL) and element width/grouping. The actual vector length set is written to rd. vtype encodes SEW (element width), LMUL (register grouping), and tail/mask policies.
Pseudocode Operation
vl = set_config(uimm, vtypei); R[rd] = vl;
Example
VSETIVLI t0, 4, vtypei
Encoding
Binary Layout
11
31:30
zimm10
29:20
zimm5
19:15
111
14:12
rd
11:7
1010111
6:0
Operands
-
rd
Dest (New VL) -
uimm
Req VL (Imm) -
vtypei
Config