Register Guide

RISC-V v4 / v4 Register: Vector data register

v4 is an RVV vector register; element count and layout are controlled by vl, vtype, VLEN, and LMUL.

ABI name: v4; physical register: v4.
Save rule: Caller.
Read it through its psABI role first, then inspect how each instruction reads or writes it.
Physical Name v4ABI Name v4Save Rule Caller
Role
Vector data register
Convention
Caller-saved
Remember This First
The calling convention listed for this entry is: Caller-saved.
psABI Vector Register Reference

ABI register

v4 is an RVV vector register; element count and layout are controlled by vl, vtype, VLEN, and LMUL.

Preserved across calls: Caller
RISC-V psABI vector register convention

When It Fits Best

  • - Use it according to the documented role: Vector data register.
  • - 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
# v4 / v4
# Vector data register
# Caller-saved