Skip to content

Commit f2f85df

Browse files
author
Jim Wilson
committed
Modify arg passing info for struct with one int and one fp to match GCC
behavior.
1 parent bd82119 commit f2f85df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

riscv-elf.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ either order, is passed in a floating-point register and an integer register,
209209
with the integer zero- or sign-extended as though it were a scalar, provided
210210
the floating-point real is no more than FLEN bits wide and the integer is no
211211
more than XLEN bits wide, and at least one floating-point argument register
212-
and at least one integer argument register is available. Otherwise, it is
213-
passed according to the integer calling convention.
212+
and at least one integer argument register is available, with the integer
213+
placed in its argument register without extension to XLEN bits. Otherwise,
214+
it is passed according to the integer calling convention.
214215

215216
Unions are never flattened and are always passed according to the integer
216217
calling convention.

0 commit comments

Comments
 (0)