[pypy-svn] r24494 - in pypy/dist/pypy/translator/squeak: . test
nik at codespeak.net
nik at codespeak.net
Thu Mar 16 21:54:34 CET 2006
Author: nik
Date: Thu Mar 16 21:54:33 2006
New Revision: 24494
Modified:
pypy/dist/pypy/translator/squeak/opformatter.py
pypy/dist/pypy/translator/squeak/test/test_llops.py
Log:
make some more integer llop tests pass, just to feel some actual
progress after all this refactoring ...
Modified: pypy/dist/pypy/translator/squeak/opformatter.py
==============================================================================
--- pypy/dist/pypy/translator/squeak/opformatter.py (original)
+++ pypy/dist/pypy/translator/squeak/opformatter.py Thu Mar 16 21:54:33 2006
@@ -44,6 +44,8 @@
'mul': '*',
'div': '//',
'floordiv': '//',
+ #'truediv': '/',: '/',
+ 'mod': r'\\',
}
number_opprefixes = "int", "uint", "llong", "ullong", "float"
Modified: pypy/dist/pypy/translator/squeak/test/test_llops.py
==============================================================================
--- pypy/dist/pypy/translator/squeak/test/test_llops.py (original)
+++ pypy/dist/pypy/translator/squeak/test/test_llops.py Thu Mar 16 21:54:33 2006
@@ -52,6 +52,8 @@
("div", Signed, 7, 3),
("floordiv", Signed, 7, 3),
("floordiv", Signed, -7, 3),
+ ("mod", Signed, 9, 4),
+ ("mod", Signed, 9, -4),
]
def test_intoperations():
@@ -68,6 +70,7 @@
tests = adapt_tests(general_tests, r_uint, Unsigned, "uint") + [
# binary wraparounds
("uint_add", Unsigned, r_uint(2*sys.maxint), r_uint(2)),
+ ("uint_sub", Unsigned, r_uint(1), r_uint(3)),
("uint_mul", Unsigned, r_uint(sys.maxint), r_uint(3)),
]
for t in tests:
More information about the Pypy-commit
mailing list