[pypy-commit] pypy jit-short_from_state: failing tests

hakanardo noreply at buildbot.pypy.org
Wed Jul 20 10:19:40 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short_from_state
Changeset: r45765:ecf28ed48baf
Date: 2011-07-18 16:35 +0200
http://bitbucket.org/pypy/pypy/changeset/ecf28ed48baf/

Log:	failing tests

diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
--- a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
+++ b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
@@ -6523,6 +6523,26 @@
         """
         self.optimize_loop(ops, expected)
 
+    def test_loopinvariant_getarrayitem(self):
+        ops = """
+        [p1]
+        p2 = getarrayitem_gc(p1, 7, descr=<GcPtrArrayDescr>)
+        call(p2, descr=nonwritedescr)
+        jump(p1)
+        """
+        short = """
+        [p1]
+        i1 = arraylen_gc(p1)
+        p2 = getarrayitem_gc(p1, 7, descr=<GcPtrArrayDescr>)
+        jump(p1, p2)
+        """
+        expected = """
+        [p1, p2]
+        call(p2, descr=nonwritedescr)
+        jump(p1, p2)
+        """
+        self.optimize_loop(ops, expected, expected_short=short)
+
     def test_duplicated_virtual(self):
         ops = """
         [p1, p2]


More information about the pypy-commit mailing list