Does VSETIVLI only write CSRs?
No. It selects vl according to AVL and vtype rules, updates vtype, and writes the new vl to rd.
Set vl/vtype using immediate AVL and vtypei.
VSETIVLI uses opcode 1010111 (0x57), funct3 111. The rs1 field selects the source register, the 12-bit immediate provides the second operand, and rd selects the destination.
VSETIVLI selects new vl and vtype from a 5-bit unsigned immediate AVL and the encoded vtypei, then writes the new vl to rd.
VSETIVLI is an RVV configuration instruction that determines vl and vtype for following vector instructions.
Understand this scenario with real code like «vsetivli t0, 8, e32, m1, ta, ma».
Understand this scenario with real code like «vsetivli t0, 8, e32, m1, ta, ma».
No. It selects vl according to AVL and vtype rules, updates vtype, and writes the new vl to rd.