Author: Richard Plangger <planri...@gmail.com> Branch: ppc-vsx-support Changeset: r87275:f180564486f9 Date: 2016-09-21 17:09 +0200 http://bitbucket.org/pypy/pypy/changeset/f180564486f9/
Log: remove unsupported operation in the stress tests (call_cond_value) diff --git a/rpython/jit/backend/test/zll_stress.py b/rpython/jit/backend/test/zll_stress.py --- a/rpython/jit/backend/test/zll_stress.py +++ b/rpython/jit/backend/test/zll_stress.py @@ -1,6 +1,7 @@ from rpython.jit.backend.test.test_random import check_random_function, Random from rpython.jit.backend.test.test_ll_random import LLtypeOperationBuilder from rpython.jit.backend.detect_cpu import getcpuclass +from rpython.jit.metainterp.resoperation import rop import platform CPU = getcpuclass() @@ -18,6 +19,14 @@ cpu.setup_once() r = Random() r.jumpahead(piece*99999999) + OPERATIONS = LLtypeOperationBuilder.OPERATIONS[:] + if not cpu.supports_cond_call_value: + # remove COND_CALL_VALUE_I if the cpu does not support it + ops = LLtypeOperationBuilder.OPERATIONS + LLtypeOperationBuilder.OPERATIONS = [op for op in ops \ + if op.opnum != rop.COND_CALL_VALUE_I] for i in range(piece*per_piece, (piece+1)*per_piece): print " i = %d; r.setstate(%s)" % (i, r.getstate()) check_random_function(cpu, LLtypeOperationBuilder, r, i, total_iterations) + # restore the old list + LLtypeOperationBuilder.OPERATIONS = OPERATIONS _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit