[pypy-svn] r53273 - in pypy/branch/jit-hotpath/pypy/jit/codegen/ia32: . test

fijal at codespeak.net fijal at codespeak.net
Thu Apr 3 07:57:28 CEST 2008


Author: fijal
Date: Thu Apr  3 07:57:26 2008
New Revision: 53273

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
   pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/test/test_rgenop.py
Log:
Not sure if this test is still valid, but passes


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py	Thu Apr  3 07:57:26 2008
@@ -1338,6 +1338,11 @@
 
     @staticmethod
     @specialize.memo()
+    def kindToken(T):
+        return None
+
+    @staticmethod
+    @specialize.memo()
     def varsizeAllocToken(T):
         if isinstance(T, lltype.Array):
             return RI386GenOp.arrayToken(T)
@@ -1361,11 +1366,6 @@
 
     @staticmethod
     @specialize.memo()
-    def kindToken(T):
-        return None     # for now
-
-    @staticmethod
-    @specialize.memo()
     def sigToken(FUNCTYPE):
         return ([LL_TO_GENVAR[arg] for arg in FUNCTYPE.ARGS if arg
                  is not lltype.Void], LL_TO_GENVAR[FUNCTYPE.RESULT])
@@ -1381,5 +1381,12 @@
         else:
             assert 0, "XXX not implemented"
 
+    @staticmethod
+    @specialize.arg(1)
+    def genzeroconst(kind):
+        # XXX kind probably goes away
+        return zero_const
+
 global_rgenop = RI386GenOp()
 RI386GenOp.constPrebuiltGlobal = global_rgenop.genconst
+zero_const = AddrConst(llmemory.NULL)

Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/test/test_rgenop.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/test/test_rgenop.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/test/test_rgenop.py	Thu Apr  3 07:57:26 2008
@@ -22,16 +22,13 @@
     test_frame_vars_like_the_frontend_direct = skipped
 
     # unsupported operations
-    test_genzeroconst = skipped
+    #test_genzeroconst = skipped
 
     # overflow
     test_ovfcheck_adder_direct = skipped
     test_ovfcheck1_direct = skipped
     test_ovfcheck2_direct = skipped
 
-    # casts
-    #test_cast_direct = skipped
-
     # lltype.Address in function arguments
     test_demo_f1_direct = skipped
 



More information about the Pypy-commit mailing list