Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76597:03b673428d67
Date: 2015-03-27 18:50 +0100
http://bitbucket.org/pypy/pypy/changeset/03b673428d67/
Log: Failing test
diff --git a/pypy/module/pypyjit/test_pypy_c/test_00_model.py
b/pypy/module/pypyjit/test_pypy_c/test_00_model.py
--- a/pypy/module/pypyjit/test_pypy_c/test_00_model.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_00_model.py
@@ -384,6 +384,25 @@
"""
assert not self.match(loop, expected)
+ def test_match_optional_op(self):
+ loop = """
+ i1 = int_add(i0, 1)
+ """
+ expected = """
+ guard_not_invalidated?
+ i1 = int_add(i0, 1)
+ """
+ assert self.match(loop, expected)
+ #
+ loop = """
+ i1 = int_add(i0, 1)
+ """
+ expected = """
+ i1 = int_add(i0, 1)
+ guard_not_invalidated?
+ """
+ assert self.match(loop, expected)
+
class TestRunPyPyC(BaseTestPyPyC):
def test_run_function(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit