[pypy-svn] r16048 - pypy/dist/pypy/translator/llvm2/module
ericvrp at codespeak.net
ericvrp at codespeak.net
Sat Aug 13 17:25:41 CEST 2005
Author: ericvrp
Date: Sat Aug 13 17:25:40 2005
New Revision: 16048
Modified:
pypy/dist/pypy/translator/llvm2/module/support.py
Log:
fixed int_lshift_ovf_val
Modified: pypy/dist/pypy/translator/llvm2/module/support.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/module/support.py (original)
+++ pypy/dist/pypy/translator/llvm2/module/support.py Sat Aug 13 17:25:40 2005
@@ -169,7 +169,8 @@
extfunctions["%int_lshift_ovf_val"] = (("%__prepare_OverflowError","%__prepare_ValueError"), """
internal fastcc int %%int_lshift_ovf_val(int %%x, int %%y) {
- %%t = shl int %%x, ubyte %%y
+ %%yu = cast int %%y to ubyte
+ %%t = shl int %%x, ubyte %%yu
%(int_ovf_test)s
return_block:
; XXX: TODO int_lshift_ovf_val checking VAL
More information about the Pypy-commit
mailing list