riscv: Fix mixed2 and mixed3 abi tests

this was caused by a simple bug, not by the current inability
to pass a {float,int} struct per psABI.  So now only ret_mixed_test
is still broken.
mob
Michael Matz 2019-07-29 21:17:51 +02:00
parent 98f1b83ffe
commit 0cb6e3fff8
1 changed files with 2 additions and 1 deletions

View File

@ -457,7 +457,8 @@ static int pass_in_freg(CType *type, int regs)
return toplevel ? 0 : -1;
return regs + tr;
}
return is_float(type->t) && (type->t & VT_BTYPE) != VT_LDOUBLE;
return is_float(type->t) && (type->t & VT_BTYPE) != VT_LDOUBLE
? 1 : toplevel ? 0 : -1;
}
ST_FUNC void gfunc_call(int nb_args)