Author: Hakan Ardo <[email protected]>
Branch: jit-short_from_state
Changeset: r46410:8295c913e2d0
Date: 2011-08-10 08:48 +0200
http://bitbucket.org/pypy/pypy/changeset/8295c913e2d0/
Log: fixed tests
diff --git a/pypy/module/pypyjit/test_pypy_c/test_generators.py
b/pypy/module/pypyjit/test_pypy_c/test_generators.py
--- a/pypy/module/pypyjit/test_pypy_c/test_generators.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_generators.py
@@ -20,6 +20,7 @@
i16 = force_token()
p45 = new_with_vtable(ConstClass(W_IntObject))
setfield_gc(p45, i29, descr=<SignedFieldDescr .*>)
+ i47 = arraylen_gc(p8, descr=<GcPtrArrayDescr>) # Should be removed
by backend
setarrayitem_gc(p8, 0, p45, descr=<GcPtrArrayDescr>)
jump(..., descr=...)
""")
diff --git a/pypy/module/pypyjit/test_pypy_c/test_misc.py
b/pypy/module/pypyjit/test_pypy_c/test_misc.py
--- a/pypy/module/pypyjit/test_pypy_c/test_misc.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_misc.py
@@ -107,7 +107,6 @@
assert log.result == 1000 * 999 / 2
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
- i11 = getfield_gc(p4, descr=<.*
.*W_AbstractSeqIterObject.inst_index .*>)
i16 = int_ge(i11, i12)
guard_false(i16, descr=...)
i17 = int_mul(i11, i14)
@@ -165,7 +164,6 @@
assert log.result == 1000000
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
- i12 = getfield_gc(p4, descr=...)
i16 = int_ge(i12, i13)
guard_false(i16, descr=...)
p17 = getarrayitem_gc(p15, i12, descr=<GcPtrArrayDescr>)
@@ -182,7 +180,6 @@
i28 = int_add_ovf(i10, i25)
guard_no_overflow(descr=...)
--TICK--
- jump(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, i28, i25, i13, p14,
p15, descr=<Loop0>)
jump(p0, p1, p2, p3, p4, p5, p6, i28, i25, p9, p10, p11, i19, i13,
p14, p15, descr=<Loop0>)
""")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit