[pypy-commit] pypy default: Fix for test_raw_store_singlefloat in the llgraph backend.

arigo noreply at buildbot.pypy.org
Sat Aug 10 13:05:44 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r66054:27e883f2a185
Date: 2013-08-10 13:05 +0200
http://bitbucket.org/pypy/pypy/changeset/27e883f2a185/

Log:	Fix for test_raw_store_singlefloat in the llgraph backend.

diff --git a/rpython/jit/backend/llgraph/runner.py b/rpython/jit/backend/llgraph/runner.py
--- a/rpython/jit/backend/llgraph/runner.py
+++ b/rpython/jit/backend/llgraph/runner.py
@@ -502,6 +502,8 @@
     def bh_raw_store_i(self, struct, offset, newvalue, descr):
         ll_p = rffi.cast(rffi.CCHARP, struct)
         ll_p = rffi.cast(lltype.Ptr(descr.A), rffi.ptradd(ll_p, offset))
+        if descr.A.OF == lltype.SingleFloat:
+            newvalue = longlong.int2singlefloat(newvalue)
         ll_p[0] = rffi.cast(descr.A.OF, newvalue)
 
     def bh_raw_store_f(self, struct, offset, newvalue, descr):


More information about the pypy-commit mailing list