[pypy-svn] r40794 - in pypy/dist/pypy/jit/codegen: ppc test

mwh at codespeak.net mwh at codespeak.net
Mon Mar 19 22:08:17 CET 2007


Author: mwh
Date: Mon Mar 19 22:08:16 2007
New Revision: 40794

Modified:
   pypy/dist/pypy/jit/codegen/ppc/instruction.py
   pypy/dist/pypy/jit/codegen/test/operation_tests.py
Log:
test + fix for a silly typo related to unsigned comparisons featuring
constants.


Modified: pypy/dist/pypy/jit/codegen/ppc/instruction.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/ppc/instruction.py	(original)
+++ pypy/dist/pypy/jit/codegen/ppc/instruction.py	Mon Mar 19 22:08:16 2007
@@ -464,7 +464,7 @@
         #print "CMPWI", asm.mc.tell()
         asm.cmpwi(self.result_reg.number, self.arg_reg.number, self.imm.value)
 
-class CMPWLI(CMPW):
+class CMPWLI(CMPWI):
     def emit(self, asm):
         asm.cmplwi(self.result_reg.number, self.arg_reg.number, self.imm.value)
 

Modified: pypy/dist/pypy/jit/codegen/test/operation_tests.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/test/operation_tests.py	(original)
+++ pypy/dist/pypy/jit/codegen/test/operation_tests.py	Mon Mar 19 22:08:16 2007
@@ -148,6 +148,12 @@
                        ('int(x != y)', lambda x, y: int(x != y)),
                        ('int(x >  y)', lambda x, y: int(x >  y)),
                        ('int(x >= y)', lambda x, y: int(x >= y)),
+                       ('int(12 <  y)', lambda x, y: int(12 <  y)),
+                       ('int(12 <= y)', lambda x, y: int(12 <= y)),
+                       ('int(12 == y)', lambda x, y: int(12 == y)),
+                       ('int(12 != y)', lambda x, y: int(12 != y)),
+                       ('int(12 >  y)', lambda x, y: int(12 >  y)),
+                       ('int(12 >= y)', lambda x, y: int(12 >= y)),
                        ]:
             fp = self.rgen(fn, [r_uint, r_uint])
             print op



More information about the Pypy-commit mailing list