Author: Remi Meier <[email protected]>
Branch: stmgc-c4
Changeset: r68648:3cee8a6b2cd2
Date: 2014-01-13 14:58 +0100
http://bitbucket.org/pypy/pypy/changeset/3cee8a6b2cd2/
Log: another test
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_stm.py
b/rpython/jit/metainterp/optimizeopt/test/test_stm.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_stm.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_stm.py
@@ -84,13 +84,35 @@
"""
self.optimize_loop(ops, expected, expected_preamble=preamble)
- # def test_dont_remove_first_tb(self):
- # ops = """
- # []
- # stm_transaction_break()
- # guard_not_forced() []
-
+ def test_dont_remove_first_tb(self):
+ ops = """
+ []
+ stm_transaction_break()
+ guard_not_forced() []
+ stm_transaction_break()
+ guard_not_forced() []
+ stm_transaction_break()
+ guard_not_forced() []
+ i0 = call(123, descr=sbtdescr)
+ guard_false(i0) []
+ jump()
+ """
+ preamble = """
+ []
+ stm_transaction_break()
+ guard_not_forced() []
+ i0 = call(123, descr=sbtdescr)
+ guard_false(i0) []
+ jump()
+ """
+ expected = """
+ []
+ i0 = call(123, descr=sbtdescr)
+ guard_false(i0) []
+ jump()
+ """
+ self.optimize_loop(ops, expected, expected_preamble=preamble)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit