[pypy-commit] pypy ppc-backend-2: Skip stack location in _set_initial_bindings for float arguments when

edelsohn noreply at buildbot.pypy.org
Mon Jun 11 16:24:14 CEST 2012


Author: edelsohn
Branch: ppc-backend-2
Changeset: r55584:4028f9166428
Date: 2012-06-11 10:22 -0400
http://bitbucket.org/pypy/pypy/changeset/4028f9166428/

Log:	Skip stack location in _set_initial_bindings for float arguments
	when GPRs overflow.

diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py
--- a/pypy/jit/backend/ppc/regalloc.py
+++ b/pypy/jit/backend/ppc/regalloc.py
@@ -234,7 +234,10 @@
                     self.try_allocate_reg(box, selected_reg=loc)
                     fparg_index += 1
                     # XXX stdarg placing float args in FPRs and GPRs
-                    arg_index += 1
+                    if arg_index < n_register_args:
+                        arg_index += 1
+                    else:
+                        cur_frame_pos -= 1
                 else:
                     if IS_PPC_32:
                         cur_frame_pos -= 2


More information about the pypy-commit mailing list