[pypy-commit] pypy array-propagate-len: failing test
squeaky
noreply at buildbot.pypy.org
Sat Feb 15 18:21:15 CET 2014
Author: Squeaky <squeaky_pl at gmx.com>
Branch: array-propagate-len
Changeset: r69152:e5565168e86f
Date: 2014-02-14 14:34 +0100
http://bitbucket.org/pypy/pypy/changeset/e5565168e86f/
Log: failing test
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizebasic.py b/rpython/jit/metainterp/optimizeopt/test/test_optimizebasic.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_optimizebasic.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_optimizebasic.py
@@ -5200,6 +5200,20 @@
"""
self.optimize_loop(ops, ops)
+ def test_cmp_outside_intbounds(self):
+ ops = """
+ [p0]
+ i0 = getfield_gc(p0, descr=chardescr)
+ i1 = int_lt(i0, 256)
+ guard_true(i1) []
+ """
+
+ expected = """
+ [p0]
+ i0 = getfield_gc(p0, descr=chardescr)
+ """
+ self.optimize_loop(ops, expected)
+
class TestLLtype(BaseTestOptimizeBasic, LLtypeMixin):
pass
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_util.py b/rpython/jit/metainterp/optimizeopt/test/test_util.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_util.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_util.py
@@ -92,6 +92,7 @@
NODE.become(lltype.GcStruct('NODE', ('parent', OBJECT),
('value', lltype.Signed),
('floatval', lltype.Float),
+ ('charval', lltype.Char),
('next', lltype.Ptr(NODE))))
NODE2 = lltype.GcStruct('NODE2', ('parent', NODE),
('other', lltype.Ptr(NODE)))
@@ -108,6 +109,7 @@
nodesize2 = cpu.sizeof(NODE2)
valuedescr = cpu.fielddescrof(NODE, 'value')
floatdescr = cpu.fielddescrof(NODE, 'floatval')
+ chardescr = cpu.fielddescrof(NODE, 'charval')
nextdescr = cpu.fielddescrof(NODE, 'next')
otherdescr = cpu.fielddescrof(NODE2, 'other')
More information about the pypy-commit
mailing list