Mercurial > hg > CbC > old > device
changeset 475:ec4046c9d34f
PowerPC float / int mix args bug fix.
author | kono |
---|---|
date | Tue, 08 Nov 2005 21:21:57 +0900 |
parents | 33735a212eff |
children | 034436187add |
files | mc-code-powerpc.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mc-code-powerpc.c Tue Nov 08 21:04:06 2005 +0900 +++ b/mc-code-powerpc.c Tue Nov 08 21:21:57 2005 +0900 @@ -1861,7 +1861,13 @@ } else if (t==LONGLONG||t==ULONGLONG) { nargs ++ ; reg_arg++; nargs ++ ; reg_arg++; - } else if (t==DOUBLE||t==FLOAT) { + } else if (t==FLOAT) { + if (*preg_arg<MAX_INPUT_REGISTER_VAR) { + reg_arg += 1; + } + freg_arg++; + nargs += size(t)/SIZE_OF_INT; + } else if (t==DOUBLE) { if (*preg_arg<MAX_INPUT_REGISTER_VAR) { reg_arg += 2; }