1. Lukas Diekmann
  2. pypy

Commits

David Schneider  committed 6fe6f4e

test fixes

  • Participants
  • Parent commits d603af5
  • Branches arm-backend-2

Comments (0)

Files changed (3)

File pypy/jit/backend/arm/assembler.py

View file
         mc.gen_load_int(r.ip.value, self.cpu.propagate_exception_v)
         mc.MOV_rr(r.r0.value, r.ip.value)
         self.gen_func_epilog(mc=mc)
-        return mc.materialize(self.cpu.asmmemmgr, [],
-                               self.cpu.gc_ll_descr.gcrootmap)
+        return mc.materialize(self.cpu.asmmemmgr, [])
 
 
     def setup_failure_recovery(self):
         self.malloc_slowpath = rawstart
 
     def propagate_memoryerror_if_r0_is_null(self):
+        if not self.propagate_exception_path:
+            return
         # see ../x86/assembler.py:propagate_memoryerror_if_eax_is_null
         self.mc.CMP_ri(r.r0.value, 0)
         self.mc.B(self.propagate_exception_path, c=c.EQ)

File pypy/jit/backend/arm/test/test_runner.py

View file
 from pypy.jit.tool.oparser import parse
 from pypy.rpython.lltypesystem import lltype, llmemory
 from pypy.rpython.annlowlevel import llhelper
+from pypy.jit.codewriter.effectinfo import EffectInfo
 
 skip_unless_arm()
 
         expected = [3, 7, 11, 15, 19, 23, 27, 3, 7, 11, 15, 19, 23, 27]
         assert output == expected
 
-    def test_redirect_call_assember(self):
+    def test_redirect_call_assember2(self):
         called = []
         def assembler_helper(failindex, virtualizable):
             return self.cpu.get_latest_value_int(0)
             assembler_helper_adr = llmemory.cast_ptr_to_adr(
                 _assembler_helper_ptr)
         FakeJitDriverSD.portal_calldescr = self.cpu.calldescrof(
-            lltype.Ptr(lltype.FuncType([lltype.Signed], lltype.Signed)), [lltype.Signed], lltype.Signed)
+            lltype.Ptr(lltype.FuncType([lltype.Signed], lltype.Signed)),
+                [lltype.Signed], lltype.Signed, EffectInfo.MOST_GENERAL)
         lt1, lt2, lt3 = [LoopToken() for x in range(3)]
         lt2.outermost_jitdriver_sd = FakeJitDriverSD()
         loop1 = parse('''

File pypy/jit/backend/test/runner_test.py

View file
             assert res.value == 2 * num
 
             # last, try it with one constant argument
-            calldescr = cpu.calldescrof(FUNC, FUNC.ARGS, FUNC.RESULT)
+            calldescr = cpu.calldescrof(FUNC, FUNC.ARGS, FUNC.RESULT, EffectInfo.MOST_GENERAL)
             res = self.execute_operation(rop.CALL,
                                          [funcbox, ConstInt(num), BoxInt(num)],
                                          'int', descr=calldescr)