[pypy-svn] r24943 - pypy/branch/explicit-exceptions/rpython/lltypesystem

mwh at codespeak.net mwh at codespeak.net
Fri Mar 24 11:52:56 CET 2006


Author: mwh
Date: Fri Mar 24 11:52:55 2006
New Revision: 24943

Modified:
   pypy/branch/explicit-exceptions/rpython/lltypesystem/lloperation.py
Log:
some more operations!  weee!


Modified: pypy/branch/explicit-exceptions/rpython/lltypesystem/lloperation.py
==============================================================================
--- pypy/branch/explicit-exceptions/rpython/lltypesystem/lloperation.py	(original)
+++ pypy/branch/explicit-exceptions/rpython/lltypesystem/lloperation.py	Fri Mar 24 11:52:55 2006
@@ -127,7 +127,11 @@
     'int_and_ovf':          LLOp(canfold=True, canraise=(OverflowError,)),
     'int_or_ovf':           LLOp(canfold=True, canraise=(OverflowError,)),
     'int_lshift_ovf':       LLOp(canfold=True, canraise=(OverflowError,)),
+    'int_lshift_val':       LLOp(canfold=True, canraise=(ValueError,)),
+    'int_lshift_ovf_val':   LLOp(canfold=True, canraise=(OverflowError, ValueError,)),
     'int_rshift_ovf':       LLOp(canfold=True, canraise=(OverflowError,)),
+    'int_rshift_val':       LLOp(canfold=True, canraise=(ValueError,)),
+    'int_rshift_ovf_val':   LLOp(canfold=True, canraise=(OverflowError, ValueError,)), 
     'int_xor_ovf':          LLOp(canfold=True, canraise=(OverflowError,)),
     'int_floordiv_ovf_zer': LLOp(canfold=True, canraise=(OverflowError, ZeroDivisionError)),
     'int_mod_ovf_zer':      LLOp(canfold=True, canraise=(OverflowError, ZeroDivisionError)),
@@ -141,8 +145,11 @@
     'uint_sub':             LLOp(canfold=True),
     'uint_mul':             LLOp(canfold=True),
     'uint_div':             LLOp(canfold=True),
+    'uint_div_zer':         LLOp(canfold=True, canraise=(ZeroDivisionError,)),
     'uint_truediv':         LLOp(canfold=True),
+    'uint_truediv_zer':     LLOp(canfold=True, canraise=(ZeroDivisionError,)),
     'uint_floordiv':        LLOp(canfold=True),
+    'uint_floordiv_zer':    LLOp(canfold=True, canraise=(ZeroDivisionError,)),
     'uint_mod':             LLOp(canfold=True),
     'uint_lt':              LLOp(canfold=True),
     'uint_le':              LLOp(canfold=True),



More information about the Pypy-commit mailing list