[pypy-commit] pypy unsigned-dtypes: 'cast_ulonglong_to_float' is really different from 'cast_longlong_to_float'.
arigo
noreply at buildbot.pypy.org
Sat Sep 10 09:47:07 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: unsigned-dtypes
Changeset: r47194:51bb610254c9
Date: 2011-09-10 09:46 +0200
http://bitbucket.org/pypy/pypy/changeset/51bb610254c9/
Log: 'cast_ulonglong_to_float' is really different from
'cast_longlong_to_float'.
diff --git a/pypy/jit/codewriter/effectinfo.py b/pypy/jit/codewriter/effectinfo.py
--- a/pypy/jit/codewriter/effectinfo.py
+++ b/pypy/jit/codewriter/effectinfo.py
@@ -74,6 +74,7 @@
OS_LLONG_UGE = 91
OS_LLONG_URSHIFT = 92
OS_LLONG_FROM_UINT = 93
+ OS_LLONG_UNSIGNED_TO_FLOAT = 94
#
OS_MATH_SQRT = 100
diff --git a/pypy/jit/codewriter/jtransform.py b/pypy/jit/codewriter/jtransform.py
--- a/pypy/jit/codewriter/jtransform.py
+++ b/pypy/jit/codewriter/jtransform.py
@@ -1004,7 +1004,7 @@
for _op, _oopspec in [('cast_int_to_ulonglong', 'FROM_INT'),
('cast_uint_to_ulonglong', 'FROM_UINT'),
- ('cast_ulonglong_to_float', 'TO_FLOAT'),
+ ('cast_ulonglong_to_float', 'UNSIGNED_TO_FLOAT'),
]:
exec py.code.Source('''
def rewrite_op_%s(self, op):
More information about the pypy-commit
mailing list