Skip to content

Commit 11edb13

Browse files
authored
Merge pull request #243 from kito-cheng/struct-pass-in-reg-rule
Clarify how struct pass in register
2 parents faf9a9d + 9a81ba4 commit 11edb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riscv-cc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ Aggregates whose total size is no more than XLEN bits are passed in
109109
a register, with the fields laid out as though they were passed in memory. If
110110
no register is available, the aggregate is passed on the stack.
111111
Aggregates whose total size is no more than 2×XLEN bits are passed in a pair
112-
of registers; if only one register is available, the first half is passed in
113-
a register and the second half is passed on the stack. If no registers are
112+
of registers; if only one register is available, the first XLEN bits are passed
113+
in a register and the remaining bits are passed on the stack. If no registers are
114114
available, the aggregate is passed on the stack. Bits unused due to
115115
padding, and bits past the end of an aggregate whose size in bits is not
116116
divisible by XLEN, are undefined.

0 commit comments

Comments
 (0)