[pypy-commit] pypy ppc-jit-backend: CAST_INT_TO_PTR, CAST_PTR_TO_INT.

hager noreply at buildbot.pypy.org
Thu Oct 27 19:06:19 CEST 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r48519:cffb9538d307
Date: 2011-10-27 19:05 +0200
http://bitbucket.org/pypy/pypy/changeset/cffb9538d307/

Log:	CAST_INT_TO_PTR, CAST_PTR_TO_INT.

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
@@ -440,6 +440,9 @@
         argloc, resloc = arglocs
         self.regalloc_mov(argloc, resloc)
 
+    emit_cast_ptr_to_int = emit_same_as
+    emit_cast_int_to_ptr = emit_same_as
+
     def emit_debug_merge_point(self, op, arglocs, regalloc):
         pass
 
diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/ppcgen/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/regalloc.py
+++ b/pypy/jit/backend/ppc/ppcgen/regalloc.py
@@ -539,6 +539,9 @@
         self.possibly_free_var(op.result)
         return [argloc, resloc]
 
+    prepare_cast_ptr_to_int = prepare_same_as
+    prepare_cast_int_to_ptr = prepare_same_as
+
     def void(self, op):
         return []
 


More information about the pypy-commit mailing list