[pypy-commit] pypy unroll-if-alt: fix this.

alex_gaynor noreply at buildbot.pypy.org
Wed Sep 21 01:17:07 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: unroll-if-alt
Changeset: r47380:b49e0e2066a7
Date: 2011-09-20 19:16 -0400
http://bitbucket.org/pypy/pypy/changeset/b49e0e2066a7/

Log:	fix this.

diff --git a/pypy/module/pypyjit/test_pypy_c/test_misc.py b/pypy/module/pypyjit/test_pypy_c/test_misc.py
--- a/pypy/module/pypyjit/test_pypy_c/test_misc.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_misc.py
@@ -299,15 +299,15 @@
         assert log.result == main()
 
         loop, = log.loops_by_id("struct")
-        # This could, of course stand some improvement, to remove all these
-        # arithmatic ops, but we've removed all the core overhead.
-        if sys.maxint == 31 ** 2:
+        if sys.maxint == 2 ** 63 - 1:
             extra = """
             i8 = int_lt(i4, -2147483648)
             guard_false(i8, descr=...)
             """
         else:
             extra = ""
+        # This could, of course stand some improvement, to remove all these
+        # arithmatic ops, but we've removed all the core overhead.
         assert loop.match_by_id("struct", """
             guard_not_invalidated(descr=...)
             # struct.pack


More information about the pypy-commit mailing list