[pypy-svn] r35977 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Sun Dec 24 14:27:34 CET 2006
Author: antocuni
Date: Sun Dec 24 14:27:33 2006
New Revision: 35977
Modified:
pypy/dist/pypy/translator/cli/opcodes.py
Log:
bugfix. It's incredible how this bug has been hidden until now...
Modified: pypy/dist/pypy/translator/cli/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/cli/opcodes.py (original)
+++ pypy/dist/pypy/translator/cli/opcodes.py Sun Dec 24 14:27:33 2006
@@ -15,7 +15,7 @@
return [PushAllArgs, op]+Not
def _abs(type_):
- return [PushAllArgs, 'call %s class [mscorlib]System.Math::Abs(%s)' % (type_, type_)]
+ return [PushAllArgs, 'call %s class [mscorlib]System.Math::Abs(%s)' % (type_, type_), StoreResult]
def _check_ovf(op):
mapping = [('[mscorlib]System.OverflowException', 'exceptions.OverflowError')]
@@ -166,6 +166,7 @@
'llong_neg': 'neg',
'llong_neg_ovf': _check_ovf(['ldc.i8 0', PushAllArgs, 'sub.ovf', StoreResult]),
'llong_abs': _abs('int64'),
+ 'llong_abs_ovf': _check_ovf(_abs('int64')),
'llong_invert': 'not',
'llong_add': 'add',
More information about the pypy-svn
mailing list