[pypy-commit] pypy optimize-int-and: failing and passing test
squeaky
noreply at buildbot.pypy.org
Sun Feb 16 19:33:22 CET 2014
Author: Squeaky <squeaky_pl at gmx.com>
Branch: optimize-int-and
Changeset: r69172:bb6064d9cde5
Date: 2014-02-16 02:36 +0100
http://bitbucket.org/pypy/pypy/changeset/bb6064d9cde5/
Log: failing and passing 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
@@ -5298,6 +5298,30 @@
"""
self.optimize_loop(ops, expected)
+ def test_intand_1mask_covering_bitrange(self):
+ ops = """
+ [p0]
+ i0 = getarrayitem_gc(p0, 0, descr=chararraydescr)
+ i1 = int_and(i0, 255)
+ jump(i1)
+ """
+
+ expected = """
+ [p0]
+ i0 = getarrayitem_gc(p0, 0, descr=chararraydescr)
+ jump(i0)
+ """
+ self.optimize_loop(ops, expected)
+
+ def test_intand_maskwith0_in_bitrange(self):
+ ops = """
+ [p0]
+ i0 = getarrayitem_gc(p0, 0, descr=chararraydescr)
+ i1 = int_and(i0, 257)
+ jump(i1)
+ """
+ self.optimize_loop(ops, ops)
+
class TestLLtype(BaseTestOptimizeBasic, LLtypeMixin):
pass
More information about the pypy-commit
mailing list