Skip to content

Commit c84ebb1

Browse files
kito-cheng4vtomat
andauthored
Apply suggestions from code review
Co-authored-by: Brandon Wu <[email protected]> Signed-off-by: Kito Cheng <[email protected]>
1 parent 7683c98 commit c84ebb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

riscv-cc.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,23 +488,23 @@ there is a shortage of vector argument registers.
488488

489489
A struct containing members with all fixed-length vectors will be passed in
490490
vector argument registers like a vector tuple type if all members have the
491-
same length, the length is less or equal to 8×ABI_VLEN bit, and the size of
492-
the whole struct is less than 8×ABI_VLEN bit.
491+
same length, the length is less than or equal to 4×ABI_VLEN bit, and the size of
492+
the whole struct is less than or equal to 8×ABI_VLEN bit.
493493
If there are not enough vector argument registers to pass the entire struct,
494494
it will pass by reference and is replaced in the argument list with the address.
495495
Otherwise, it will use the rule defined in the hardware floating-point calling
496496
convention.
497497

498-
A struct containing just one fixed-length vector or on fixed-length vector
499-
array of length one, it will flattening as a single fixed-length vector argument
498+
A struct containing just one fixed-length vector or a fixed-length vector
499+
array of length one, it will be flattened as a single fixed-length vector argument
500500
if the size of the vector is less than or equal to 8×ABI_VLEN bit.
501501

502502
Struct with zero-length fixed-length arrays use the rule defined in the hardware
503503
floating-point calling convention, which means it won't consume vector argument
504504
register eitehr in C or {Cpp}.
505505

506506
A struct containing just one fixed-length vector array is passed as though it
507-
were a vector tuple type if the size of the base element for the array is less
507+
were a vector tuple type if the size of the base element for the array is less than
508508
or equal to 8×ABI_VLEN bit, and the size of the array is less than 8×ABI_VLEN
509509
bit.
510510
If there are not enough vector argument registers to pass the entire struct,

0 commit comments

Comments
 (0)