Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r98350:67ecbe59924d
Date: 2019-12-20 18:33 +0000
http://bitbucket.org/pypy/pypy/changeset/67ecbe59924d/
Log: Fix some pypyjit tests
diff --git a/pypy/module/pypyjit/test_pypy_c/test_call.py
b/pypy/module/pypyjit/test_pypy_c/test_call.py
--- a/pypy/module/pypyjit/test_pypy_c/test_call.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_call.py
@@ -82,7 +82,6 @@
assert entry_bridge.match_by_id('call', """
dummy_get_utf8?
p38 =
call_r(ConstClass(_ll_1_threadlocalref_get__Ptr_GcStruct_objectLlT_Signed), #,
descr=<Callr . i EF=1 OS=5>)
- p99 = getfield_gc_r(p38, descr=<FieldP
pypy.interpreter.executioncontext.ExecutionContext.inst_sys_exc_operror .*>)
p39 = getfield_gc_r(p38, descr=<FieldP
pypy.interpreter.executioncontext.ExecutionContext.inst_topframeref .*>)
i40 = force_token()
p41 = getfield_gc_r(p38, descr=<FieldP
pypy.interpreter.executioncontext.ExecutionContext.inst_w_tracefunc .*>)
@@ -444,7 +443,6 @@
dummy_get_utf8?
guard_not_invalidated(descr=...)
p29 =
call_r(ConstClass(_ll_1_threadlocalref_get__Ptr_GcStruct_objectLlT_Signed), #,
descr=<Callr . i EF=1 OS=5>)
- p99 = getfield_gc_r(p29, descr=<FieldP
pypy.interpreter.executioncontext.ExecutionContext.inst_sys_exc_operror .*>)
p30 = getfield_gc_r(p29, descr=<FieldP
pypy.interpreter.executioncontext.ExecutionContext.inst_topframeref .*>)
p31 = force_token()
p32 = getfield_gc_r(p29, descr=<FieldP
pypy.interpreter.executioncontext.ExecutionContext.inst_w_tracefunc .*>)
diff --git a/pypy/module/pypyjit/test_pypy_c/test_ffi.py
b/pypy/module/pypyjit/test_pypy_c/test_ffi.py
--- a/pypy/module/pypyjit/test_pypy_c/test_ffi.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_ffi.py
@@ -428,7 +428,6 @@
p156 = getfield_gc_r(p48, descr=...)
i158 = getfield_raw_i(..., descr=...)
setfield_gc(p48, p49, descr=...)
- setfield_gc(p48, p50, descr=...)
setfield_gc(p134, ConstPtr(null), descr=...)
i159 = int_lt(i158, 0)
guard_false(i159, descr=...)
diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py
b/pypy/module/pypyjit/test_pypy_c/test_string.py
--- a/pypy/module/pypyjit/test_pypy_c/test_string.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_string.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import sys
+import pytest
from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC
# XXX review the <Call> descrs to replace some EF=5 with EF=4 (elidable)
@@ -66,26 +67,20 @@
i97 = int_ge(i94, i53)
guard_false(i97, descr=...)
i98 = strgetitem(p52, i94)
- p1 = force_token()
p103 = newstr(1)
strsetitem(p103, 0, i98)
- setfield_gc(p0, p1, descr=<FieldP
pypy.interpreter.pyframe.PyFrame.vable_token .>)
- p296 = call_may_force_r(ConstClass(str_decode_utf8), p103,
ConstPtr(null), 1, _, 0, descr=<Callr . rriii EF=7>)
- guard_not_forced(descr=...)
+ i95 = call_i(ConstClass(_check_utf8), p103, 0, 0, -1, descr=<Calli
8 riii EF=4>)
guard_no_exception(descr=...)
- p116 = getfield_gc_r(p296, descr=<FieldP tuple3.item0 .+ pure>)
- i107 = getfield_gc_i(p296, descr=<FieldS tuple3.item1 .+ pure>)
- i109 = int_lt(i107, 0)
- guard_false(i109, descr=...)
- guard_not_invalidated(descr=...)
+ i98 = int_ge(i95, 0)
+ guard_true(i98, descr=...)
i99 = int_ge(i94, i46)
guard_false(i99, descr=...)
i115 = int_add(i94, 1)
i116 = int_gt(i115, i71)
guard_false(i116, descr=...)
- i120 = strgetitem(p45, i94)
- i122 =
call_i(ConstClass(_ll_2_str_eq_checknull_char__rpy_stringPtr_Char), p116, i120,
descr=<Calli . ri EF=0 OS=30>)
- guard_true(i122, descr=...)
+
+ i104 =
call_i(ConstClass(_ll_4_str_eq_slice_char__rpy_stringPtr_Signed_Signed_Char),
p65, i94, 1, i98, descr=<Calli 8 riii EF=0 OS=27>)
+ guard_true(i104, descr=...)
i124 = int_add(i83, 1)
--TICK--
jump(..., descr=...)
@@ -207,6 +202,7 @@
''')
assert loop.match_by_id('calltwo', '') # nothing
+ @pytest.mark.xfail
def test_move_method_call_out_of_loop(self):
# XXX this does not work: _lower_unicode() is found to be elidable,
# but it can raise (because of 'raise StopIteration' in
@@ -273,7 +269,6 @@
--TICK--
jump(..., descr=...)
""")
- # XXX remove the guard_nonnull above?
def test_unicode_indexing_makes_no_bridges(self):
log = self.run(r"""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit