[pypy-svn] r78549 - pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Oct 30 18:35:06 CEST 2010


Author: cfbolz
Date: Sat Oct 30 18:35:04 2010
New Revision: 78549

Modified:
   pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py
Log:
everything repeats


Modified: pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py	(original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py	Sat Oct 30 18:35:04 2010
@@ -2179,14 +2179,21 @@
         guard_value(p1, ConstPtr(myptr)) [i1]
         jump(p2, i0, i1, i4, p2)
         """
-        expected = """
+        preamble = """
         [p1, i0, i1, i2, p2]
         guard_value(p1, ConstPtr(myptr), descr=fdescr) [i0]
         i3 = int_add(i1, i2)
         i4 = int_sub(i3, 1)
-        jump(p2, i0, i1, i4, p2)
+        jump(p2, i0, i1, i4)
         """
-        self.optimize_loop(ops, expected)
+        expected = """
+        [p2, i0, i1, i2]
+        guard_value(p2, ConstPtr(myptr), descr=fdescr2) [i0]
+        i3 = int_add(i1, i2)
+        i4 = int_sub(i3, 1)
+        jump(ConstPtr(myptr), i0, i1, i4)
+        """
+        self.optimize_loop(ops, expected, preamble)
         self.check_expanded_fail_descr("i0", rop.GUARD_VALUE)
 
     def test_guard_class_oois(self):



More information about the Pypy-commit mailing list