[pypy-commit] pypy ppc-jit-backend: add sanity check to bl_abs

hager noreply at buildbot.pypy.org
Wed Dec 7 18:27:43 CET 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r50277:e20c4260d119
Date: 2011-12-07 18:23 +0100
http://bitbucket.org/pypy/pypy/changeset/e20c4260d119/

Log:	add sanity check to bl_abs

diff --git a/pypy/jit/backend/ppc/ppcgen/codebuilder.py b/pypy/jit/backend/ppc/ppcgen/codebuilder.py
--- a/pypy/jit/backend/ppc/ppcgen/codebuilder.py
+++ b/pypy/jit/backend/ppc/ppcgen/codebuilder.py
@@ -1015,8 +1015,9 @@
         self.bctr()
 
     def bl_abs(self, address):
-        self.load_imm(r.r0, address)
+        self.alloc_scratch_reg(address)
         self.mtctr(r.r0.value)
+        self.free_scratch_reg()
         self.bctrl()
 
     def prepare_insts_blocks(self, show=False):


More information about the pypy-commit mailing list