[pypy-commit] pypy arm-backend-2: implement convert_float_bytes_to_longlong

bivab noreply at buildbot.pypy.org
Thu Apr 5 14:19:09 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r54202:fdde7a2ddb35
Date: 2012-03-28 11:35 +0000
http://bitbucket.org/pypy/pypy/changeset/fdde7a2ddb35/

Log:	implement convert_float_bytes_to_longlong

diff --git a/pypy/jit/backend/arm/opassembler.py b/pypy/jit/backend/arm/opassembler.py
--- a/pypy/jit/backend/arm/opassembler.py
+++ b/pypy/jit/backend/arm/opassembler.py
@@ -1297,3 +1297,5 @@
         assert res.is_reg()
         self.mc.VMOV_rc(res.value, r.ip.value, loc.value)
         return fcond
+
+    emit_op_convert_float_bytes_to_longlong = gen_emit_unary_float_op('float_bytes_to_longlong', 'VMOV_cc')
diff --git a/pypy/jit/backend/arm/regalloc.py b/pypy/jit/backend/arm/regalloc.py
--- a/pypy/jit/backend/arm/regalloc.py
+++ b/pypy/jit/backend/arm/regalloc.py
@@ -1204,6 +1204,9 @@
         self.force_spill_var(op.getarg(0))
         return []
 
+    prepare_op_convert_float_bytes_to_longlong = prepare_float_op(base=False,
+			    name='prepare_op_convert_float_bytes_to_longlong')
+
 
 def add_none_argument(fn):
     return lambda self, op, fcond: fn(self, op, None, fcond)


More information about the pypy-commit mailing list