[pypy-commit] pypy ppc-jit-backend: Fixed bug in INT_ADD implementation.

hager noreply at buildbot.pypy.org
Fri Oct 14 10:47:50 CEST 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r48050:5cb205efd4da
Date: 2011-10-14 10:47 +0200
http://bitbucket.org/pypy/pypy/changeset/5cb205efd4da/

Log:	Fixed bug in INT_ADD implementation.

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
@@ -25,7 +25,7 @@
         elif l1.is_imm():
             self.mc.addi(res.value, l0.value, l1.value)
         else:
-            self.add(res.value, l0.value, l1.value)
+            self.mc.add(res.value, l0.value, l1.value)
    
     emit_int_le = gen_emit_cmp_op(c.LE)   
 


More information about the pypy-commit mailing list