Author: Hakan Ardo <ha...@debian.org> Branch: Changeset: r54961:3171339b6d63 Date: 2012-05-08 17:03 +0200 http://bitbucket.org/pypy/pypy/changeset/3171339b6d63/
Log: failing test for 667dc968eea6 (plus some) diff --git a/pypy/jit/metainterp/test/test_loop_unroll.py b/pypy/jit/metainterp/test/test_loop_unroll.py --- a/pypy/jit/metainterp/test/test_loop_unroll.py +++ b/pypy/jit/metainterp/test/test_loop_unroll.py @@ -19,3 +19,4 @@ class TestOOtype(LoopUnrollTest, OOJitMixin): pass + diff --git a/pypy/jit/metainterp/test/test_loop_unroll_disopt.py b/pypy/jit/metainterp/test/test_loop_unroll_disopt.py new file mode 100644 --- /dev/null +++ b/pypy/jit/metainterp/test/test_loop_unroll_disopt.py @@ -0,0 +1,25 @@ +import py +from pypy.rlib.jit import JitDriver +from pypy.jit.metainterp.test import test_loop +from pypy.jit.metainterp.test.support import LLJitMixin, OOJitMixin +from pypy.jit.metainterp.optimizeopt import ALL_OPTS_NAMES + +allopts = ALL_OPTS_NAMES.split(':') +for optnum in range(len(allopts)): + myopts = allopts[:] + del myopts[optnum] + + class TestLLtype(test_loop.LoopTest, LLJitMixin): + enable_opts = ':'.join(myopts) + + def check_resops(self, *args, **kwargs): + pass + def check_trace_count(self, count): + pass + + opt = allopts[optnum] + exec "TestLoopNo%sLLtype = TestLLtype" % (opt[0].upper() + opt[1:]) + +del TestLLtype # No need to run the last set twice +del TestLoopNoUnrollLLtype # This case is take care of by test_loop + _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit