[pypy-commit] pypy float-bytes: failing test

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


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

Log:	failing test

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
@@ -1598,6 +1598,11 @@
                                      [BoxPtr(x)], 'int').value
         assert res == -19
 
+    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)
+
     def test_ooops_non_gc(self):
         x = lltype.malloc(lltype.Struct('x'), flavor='raw')
         v = heaptracker.adr2int(llmemory.cast_ptr_to_adr(x))


More information about the pypy-commit mailing list