[pypy-svn] r51915 - in pypy/dist/pypy/jit/codegen/cli: . test
antocuni at codespeak.net
antocuni at codespeak.net
Thu Feb 28 15:26:17 CET 2008
Author: antocuni
Date: Thu Feb 28 15:26:16 2008
New Revision: 51915
Modified:
pypy/dist/pypy/jit/codegen/cli/rgenop.py
pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
Log:
test_genzeroconst passes. Not sure it's correct, though
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 Thu Feb 28 15:26:16 2008
@@ -206,6 +206,13 @@
assert False, "XXX not implemented"
@staticmethod
+ def genzeroconst(kind):
+ if kind == '<Signed>':
+ return IntConst(0)
+ else:
+ return zero_const # ???
+
+ @staticmethod
@specialize.memo()
def sigToken(FUNCTYPE):
"""Return a token describing the signature of FUNCTYPE."""
@@ -406,3 +413,4 @@
global_rgenop = RCliGenOp()
RCliGenOp.constPrebuiltGlobal = global_rgenop.genconst
+zero_const = ObjectConst(ootype.null(ootype.ROOT))
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 Thu Feb 28 15:26:16 2008
@@ -76,9 +76,6 @@
def test_from_random_5_direct(self):
py.test.skip('mono crash')
- def test_genzeroconst(self):
- py.test.skip('fixme')
-
def test_ovfcheck_adder_direct(self):
py.test.skip('fixme')
More information about the Pypy-commit
mailing list