Commits

David Schneider  committed c13457b

do not overwrite r.ip when loading pos_exception before resetting it

  • Participants
  • Parent commits 46c2ba0

Comments (0)

Files changed (1)

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

         if exctploc is not None:
             # store pos_exception in exctploc
             assert exctploc.is_reg()
-            mc.gen_load_int(r.ip.value, self.cpu.pos_exception())
-            self.load_reg(mc, exctploc, r.ip)
+            mc.gen_load_int(tmpreg.value, self.cpu.pos_exception())
+            self.load_reg(mc, exctploc, tmpreg)
 
         # reset exception
         mc.gen_load_int(tmpreg.value, 0)