[pypy-svn] pypy jit-usable_retrace: Test GUARD_OVERFLOW aswell. Currently it will not be moved out of the loop and end up in the short preamble

hakanardo commits-noreply at bitbucket.org
Sun Mar 27 20:30:30 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-usable_retrace
Changeset: r42985:7ce37a96d335
Date: 2011-03-27 15:47 +0200
http://bitbucket.org/pypy/pypy/changeset/7ce37a96d335/

Log:	Test GUARD_OVERFLOW aswell. Currently it will not be moved out of
	the loop and end up in the short preamble

diff --git a/pypy/jit/metainterp/test/test_basic.py b/pypy/jit/metainterp/test/test_basic.py
--- a/pypy/jit/metainterp/test/test_basic.py
+++ b/pypy/jit/metainterp/test/test_basic.py
@@ -464,6 +464,8 @@
                 if y&4 == 0:
                     x1, x2 = x2, x1
             return res
+        res = self.meta_interp(f, [sys.maxint, 6, 32, 48])
+        assert res == f(sys.maxint, 6, 32, 48)
         res = self.meta_interp(f, [6, sys.maxint, 32, 48])
         assert res == f(6, sys.maxint, 32, 48)
 


More information about the Pypy-commit mailing list