Commits

David Schneider committed c8a2911

some register allocation related fixes

Comments (0)

Files changed (2)

pypy/jit/backend/arm/assembler.py

             self.mc.PUSH([loc.value])
         elif loc.is_vfp_reg():
             self.mc.VPUSH([loc.value])
+        elif loc.is_imm():
+            self.regalloc_mov(loc, r.ip)
+            self.mc.PUSH([r.ip.value])
         else:
             assert 0, 'ffuu'
 

pypy/jit/backend/arm/regalloc.py

             i += 1
             if loc.is_reg():
                 self.rm.reg_bindings[arg] = loc
-            elif loc.is_vfp_reg:
+            elif loc.is_vfp_reg():
                 self.vfprm.reg_bindings[arg] = loc
             else:
                 assert loc.is_stack()
             box = thing
         return loc, box
 
-
-
+    def _sync_var(self, v):
+        if v.type == FLOAT:
+            self.vfprm._sync_var(v)
+        else:
+            self.rm._sync_var(v)
 
     def prepare_op_int_add(self, op, fcond):
         boxes = list(op.getarglist())