Skip to content

Commit

Permalink
add the scope of application of vector cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lhtin committed Jul 10, 2023
1 parent 9ee7cb7 commit 0c08fcc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion riscv-cc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ duration in accordance with C11 section 7.6 "Floating-point environment
| vxsat | | Vector fixed-point saturation flag register | No
|===

.Vector register convention for standard vector calling convention variant
.Vector register convention for standard vector calling convention variant*
[%autowidth]
|===
| Name | ABI Mnemonic | Meaning | Preserved across calls?
Expand All @@ -126,6 +126,11 @@ duration in accordance with C11 section 7.6 "Floating-point environment
| vxsat | | Vector fixed-point saturation flag register | No
|===

*: Functions that use vector registers to pass arguments and return values must
follow this calling convention. Some programming languages can require extra
functions to follow this calling convention (e.g. C/C++ functions with
attribute `riscv_vector_cc`).

Please refer to the <<Standard Vector Calling Convention Variant>> section for
more details about standard vector calling convention variant.

Expand Down

0 comments on commit 0c08fcc

Please sign in to comment.