[pypy-svn] r67177 - pypy/branch/pyjitpl5/pypy/translator/cli

antocuni at codespeak.net antocuni at codespeak.net
Tue Aug 25 10:11:35 CEST 2009


Author: antocuni
Date: Tue Aug 25 10:11:35 2009
New Revision: 67177

Modified:
   pypy/branch/pyjitpl5/pypy/translator/cli/opcodes.py
Log:
*div_ovf needs to also catch ArithmeticException; this fixes jit test test_zrpy_basic.test_div_overflow



Modified: pypy/branch/pyjitpl5/pypy/translator/cli/opcodes.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/translator/cli/opcodes.py	(original)
+++ pypy/branch/pyjitpl5/pypy/translator/cli/opcodes.py	Tue Aug 25 10:11:35 2009
@@ -174,7 +174,7 @@
     'int_add_nonneg_ovf':       _check_ovf('add.ovf'),
     'int_sub_ovf':              _check_ovf('sub.ovf'),
     'int_mul_ovf':              _check_ovf('mul.ovf'),
-    'int_floordiv_ovf':         _check_ovf('div'),
+    'int_floordiv_ovf':         _check_ovf('div', catch_arithmexic_exception=True),
     'int_mod_ovf':              _check_ovf('rem', catch_arithmexic_exception=True),
     'int_lt_ovf':               'clt',
     'int_le_ovf':               _not('cgt'),



More information about the Pypy-commit mailing list