Author: Hakan Ardo <[email protected]>
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]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to