[pypy-svn] r51388 - in pypy/dist/pypy/jit/codegen/cli: . test

antocuni at codespeak.net antocuni at codespeak.net
Mon Feb 11 16:37:19 CET 2008


Author: antocuni
Date: Mon Feb 11 16:37:17 2008
New Revision: 51388

Modified:
   pypy/dist/pypy/jit/codegen/cli/rgenop.py
   pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
Log:
implement op_same_as (not very smart for now, it just renames
everything)



Modified: pypy/dist/pypy/jit/codegen/cli/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/cli/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/cli/rgenop.py	Mon Feb 11 16:37:17 2008
@@ -261,6 +261,11 @@
         op = ops.Call(self.il, sigtoken, gv_fnptr, args_gv)
         self.emit(op)
         return op.gv_res()
+
+    def genop_same_as(self, kindtoken, gv_x):
+        op = ops.SameAs(self.il, gv_x)
+        self.emit(op)
+        return op.gv_res()
         
     def emit(self, op):
         op.emit()

Modified: pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py	Mon Feb 11 16:37:17 2008
@@ -24,6 +24,7 @@
         'test_flipped_cmp_with_immediate',
         'test_tight_loop',
         'test_jump_to_block_with_many_vars',
+        'test_same_as',
         ]
 
     for p in prefixes:



More information about the Pypy-commit mailing list