Mercurial > hg > CbC > old > device
diff mc-code-powerpc.c @ 475:ec4046c9d34f
PowerPC float / int mix args bug fix.
author | kono |
---|---|
date | Tue, 08 Nov 2005 21:21:57 +0900 (2005-11-08) |
parents | cf1c2c42b7c8 |
children | b4d9809d6ee2 |
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; }