[pypy-commit] pypy ppc-backend-2: Add float support to prepare_jump.

edelsohn noreply at buildbot.pypy.org
Tue Apr 24 04:47:48 CEST 2012


Author: edelsohn
Branch: ppc-backend-2
Changeset: r54714:b6d30e9ba7df
Date: 2012-04-23 22:47 -0400
http://bitbucket.org/pypy/pypy/changeset/b6d30e9ba7df/

Log:	Add float support to prepare_jump.

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
@@ -263,7 +263,7 @@
             i += 1
             if loc.is_reg():
                 self.rm.reg_bindings[arg] = loc
-            elif loc.is_vfp_reg():
+            elif loc.is_fp_reg():
                 assert 0, "not supported"
             else:
                 assert loc.is_stack()
@@ -663,10 +663,13 @@
 
         # get temporary locs
         tmploc = r.SCRATCH
+        fptmploc = r.f0
 
         # Part about non-floats
         src_locations1 = []
         dst_locations1 = []
+        src_locations2 = []
+        dst_locations2 = []
 
         # Build the four lists
         for i in range(op.numargs()):
@@ -677,10 +680,12 @@
                 src_locations1.append(src_loc)
                 dst_locations1.append(dst_loc)
             else:
-                assert 0, "not implemented yet"
+                src_locations2.append(src_loc)
+                dst_locations2.append(dst_loc)
 
-        remap_frame_layout(self.assembler, src_locations1,
-                dst_locations1, tmploc)
+        remap_frame_layout(self.assembler,
+                           src_locations1, dst_locations1, tmploc,
+                           src_locations2, dst_locations2, fptmploc)
         return []
 
     def prepare_setfield_gc(self, op):


More information about the pypy-commit mailing list