[pypy-commit] pypy float-bytes: this should be a box, not a const

alex_gaynor noreply at buildbot.pypy.org
Mon Mar 19 21:34:13 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: float-bytes
Changeset: r53809:99208c5bc5a1
Date: 2012-03-19 15:33 -0500
http://bitbucket.org/pypy/pypy/changeset/99208c5bc5a1/

Log:	this should be a box, not a const

diff --git a/pypy/jit/backend/test/runner_test.py b/pypy/jit/backend/test/runner_test.py
--- a/pypy/jit/backend/test/runner_test.py
+++ b/pypy/jit/backend/test/runner_test.py
@@ -16,9 +16,11 @@
 from pypy.rpython.annlowlevel import llhelper
 from pypy.rpython.llinterp import LLException
 from pypy.jit.codewriter import heaptracker, longlong
+from pypy.rlib import longlong2float
 from pypy.rlib.rarithmetic import intmask, is_valid_int
 from pypy.jit.backend.detect_cpu import autodetect_main_model_and_size
 
+
 def boxfloat(x):
     return BoxFloat(longlong.getfloatstorage(x))
 
@@ -1600,8 +1602,8 @@
 
     def test_convert_float_bytes(self):
         res = self.execute_operation(rop.CONVERT_FLOAT_BYTES_TO_LONGLONG,
-                                     [constfloat(2.5)], 'int').value
-        assert res == float2longlong.float2longlong(2.5)
+                                     [boxfloat(2.5)], 'int').value
+        assert res == longlong2float.float2longlong(2.5)
 
     def test_ooops_non_gc(self):
         x = lltype.malloc(lltype.Struct('x'), flavor='raw')


More information about the pypy-commit mailing list