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
zimm[10:0]
29:19
uimm
111
18:16
rd
15:11
1010111
10:4
 
Format V-Type
Opcode 0x57
Extension V

Operands

  • rd
    Dest (New VL)
  • uimm
    Req VL (Imm)
  • vtypei
    Config