Commits

Armin Rigo committed a299cd0

Fix test_assembler_call_float on 32-bit

Comments (0)

Files changed (1)

pypy/jit/backend/llgraph/runner.py

         #
         assembler_helper_ptr = jd.assembler_helper_adr.ptr  # fish
         try:
-            return assembler_helper_ptr(pframe, vable)
+            result = assembler_helper_ptr(pframe, vable)
         except LLException, lle:
             assert self.last_exception is None, "exception left behind"
             self.last_exception = lle
             # fish op
             op = self.current_op
             return op.result and op.result.value
+        if isinstance(result, float):
+            result = support.cast_to_floatstorage(result)
+        return result
 
     def execute_same_as(self, _, x):
         return x