1. Pypy
  2. Untitled project
  3. pypy

Commits

David Schneider  committed c1c1319

fix the tests

  • Participants
  • Parent commits 6ee2777
  • Branches jitframe-on-heap

Comments (0)

Files changed (1)

File rpython/jit/backend/llsupport/test/test_gc_integration.py

View file
  • Ignore whitespace
 
 from rpython.jit.backend.llsupport.test.test_regalloc_integration import BaseTestRegalloc
 from rpython.jit.codewriter.effectinfo import EffectInfo
+from rpython.jit.codewriter import longlong
 from rpython.rlib.objectmodel import invoke_around_extcall
 
 CPU = getcpuclass()
     val = 0
     for i in range(len(frame.jf_gcmap)):
         item = frame.jf_gcmap[i]
+        if item == 0:
+            val += WORD * 8
         while item != 0:
             if item & 1:
                 res.append(val)
         cpu.gc_ll_descr.init_nursery(20)
         cpu.setup_once()
         cpu.compile_loop(loop.inputargs, loop.operations, token)
-        frame = cpu.execute_token(token, 2.3)
+        arg = longlong.getfloatstorage(2.3)
+        frame = cpu.execute_token(token, arg)
         ofs = cpu.get_baseofs_of_frame_field()
         f = cpu.read_float_at_mem(frame, ofs)
+        f = longlong.getrealfloat(f)
         assert f == 2.3 + 1.2
 
     def test_malloc_1(self):