FFI/x64: Fix passing of vector arguments to calls.

master
Mike Pall 2013-09-08 13:11:02 +02:00
parent 93c2b939bd
commit 782787f1fa
1 changed files with 3 additions and 2 deletions

View File

@ -173,9 +173,10 @@
#define CCALL_HANDLE_REGARG \
if (isfp) { /* Try to pass argument in FPRs. */ \
if (nfpr + n <= CCALL_NARG_FPR) { \
int n2 = ctype_isvector(d->info) ? 1 : n; \
if (nfpr + n2 <= CCALL_NARG_FPR) { \
dp = &cc->fpr[nfpr]; \
nfpr += n; \
nfpr += n2; \
goto done; \
} \
} else { /* Try to pass argument in GPRs. */ \