Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r79579:6fe14ac7a5dd
Date: 2015-09-10 09:52 +0200
http://bitbucket.org/pypy/pypy/changeset/6fe14ac7a5dd/
Log: a failing test
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
@@ -8803,5 +8803,30 @@
"""
self.optimize_loop(ops, expected)
+ def test_resume_forced_raw_ptr(self):
+ ops = """
+ [i0]
+ i = call_i('malloc', 10, descr=raw_malloc_descr)
+ is = int_add(i, 8)
+ escape_n(i)
+ i1 = int_add(i0, 1)
+ i2 = int_lt(i1, 100)
+ guard_true(i2) [is]
+ call_n('free', i, descr=raw_free_descr)
+ jump(i1)
+ """
+ expected = """
+ [i0]
+ i = call_i('malloc', 10, descr=raw_malloc_descr)
+ is = int_add(i, 8)
+ escape_n(i)
+ i1 = int_add(i0, 1)
+ i2 = int_lt(i1, 100)
+ guard_true(i2) [is]
+ call_n('free', i, descr=raw_free_descr)
+ jump(i1)
+ """
+ self.optimize_loop(ops, expected)
+
class TestLLtype(OptimizeOptTest, LLtypeMixin):
pass
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit