Author: hager <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to