[pypy-commit] pypy arm-backend-2: another check for float support

bivab noreply at buildbot.pypy.org
Mon Jul 23 11:41:17 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r56403:a6a12868633a
Date: 2012-07-23 11:40 +0200
http://bitbucket.org/pypy/pypy/changeset/a6a12868633a/

Log:	another check for float support

diff --git a/pypy/jit/backend/arm/assembler.py b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -475,11 +475,14 @@
 
     def _build_malloc_slowpath(self):
         mc = ARMv7Builder()
-        assert self.cpu.supports_floats
+        if self.cpu.supports_floats:
+            vfp_regs = r.all_vfp_regs
+        else:
+            vfp_regs = []
         # We need to push two registers here because we are going to make a
         # call an therefore the stack needs to be 8-byte aligned
         mc.PUSH([r.ip.value, r.lr.value])
-        with saved_registers(mc, [], r.all_vfp_regs):
+        with saved_registers(mc, [], vfp_regs):
             # At this point we know that the values we need to compute the size
             # are stored in r0 and r1.
             mc.SUB_rr(r.r0.value, r.r1.value, r.r0.value)


More information about the pypy-commit mailing list