Skip to content

Commit f1ce16f

Browse files
author
Jim Wilson
authored
Merge pull request #74 from jim-wilson/mixed-struct-passing
Modify arg passing info for struct with one int and one fp to match GCC behavior.
2 parents 0528053 + f2f85df commit f1ce16f

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)