[pypy-commit] pypy ppc-jit-backend: fix another bug in CALL_ASSEMBLER

hager noreply at buildbot.pypy.org
Tue Jan 3 13:36:12 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r50992:997593f72e51
Date: 2012-01-03 13:35 +0100
http://bitbucket.org/pypy/pypy/changeset/997593f72e51/

Log:	fix another bug in CALL_ASSEMBLER

diff --git a/pypy/jit/backend/ppc/ppcgen/opassembler.py b/pypy/jit/backend/ppc/ppcgen/opassembler.py
--- a/pypy/jit/backend/ppc/ppcgen/opassembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/opassembler.py
@@ -996,9 +996,8 @@
             pmc.overwrite()
 
         self.mc.alloc_scratch_reg()
+        self.mc.load(r.SCRATCH.value, r.SPP.value, 0)
         self.mc.cmp_op(0, r.SCRATCH.value, 0, imm=True)
-        self.mc.load(r.SCRATCH.value, r.SPP.value, 0)
-        self.mc.cror(2, 1, 2)
         self.mc.free_scratch_reg()
 
         self._emit_guard(guard_op, regalloc._prepare_guard(guard_op), c.LT)


More information about the pypy-commit mailing list