Register Guide

RISC-V vtype / vtype Register: Vector Type CSR

vtype encodes SEW, LMUL, and the VTA/VMA tail- and mask-agnostic policies.

ABI name: vtype; physical register: vtype.
Save rule: Caller.
Read it through its psABI role first, then inspect how each instruction reads or writes it.
Physical Name vtypeABI Name vtypeSave Rule Caller
Role
Vector Type CSR
Convention
Caller-saved
Remember This First
The calling convention listed for this entry is: Caller-saved.
RISC-V Vector ISA Reference

ABI register

vtype encodes SEW, LMUL, and the VTA/VMA tail- and mask-agnostic policies.

Preserved across calls: Caller
RISC-V Unprivileged ISA Manual, V extension

When It Fits Best

  • - Use it according to the documented role: Vector Type CSR.
  • - Consult the applicable ISA or ABI specification for concrete read, write, or execution semantics.

When Not To Use It This Way

  • - Do not apply the integer temporary-register t* rules to this entry.
  • - Do not infer behavior not defined by this page or the applicable specification from the ABI name.

What Happens Around A Call

1

The calling convention listed for this entry is: Caller-saved.

2

The save rule listed for this entry is: Caller.

Read The Documented Role

Examples explain the rule, not a complete program
# vtype / vtype
# Vector Type CSR
# Caller-saved