[pypy-commit] pypy default: passing test

hakanardo noreply at buildbot.pypy.org
Sat Feb 18 09:54:42 CET 2012


Author: Hakan Ardo <hakan at debian.org>
Branch: 
Changeset: r52599:eedaa25113ac
Date: 2012-02-18 09:00 +0100
http://bitbucket.org/pypy/pypy/changeset/eedaa25113ac/

Log:	passing test

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
@@ -7796,6 +7796,23 @@
         """
         self.optimize_loop(ops, expected)
 
+    def test_issue1048_ok(self):
+        ops = """
+        [p1, i2, i3]
+        p16 = getfield_gc(p1, descr=nextdescr)
+        call(p16, descr=nonwritedescr)
+        guard_true(i2) [p16]
+        setfield_gc(p1, ConstPtr(myptr), descr=nextdescr)
+        jump(p1, i3, i2)
+        """
+        expected = """
+        [p1, i3]
+        call(ConstPtr(myptr), descr=nonwritedescr)
+        guard_true(i3) []
+        jump(p1, 1)
+        """
+        self.optimize_loop(ops, expected)
+
 class TestLLtype(OptimizeOptTest, LLtypeMixin):
     pass
 


More information about the pypy-commit mailing list