Author: Richard Plangger <planri...@gmail.com> Branch: s390x-backend Changeset: r82090:ed27d3e4b9d8 Date: 2016-02-05 17:23 +0100 http://bitbucket.org/pypy/pypy/changeset/ed27d3e4b9d8/
Log: fixed a bug where pool did not allocate space for constant parameter (gc_load_indexed, and store) diff --git a/rpython/jit/backend/zarch/pool.py b/rpython/jit/backend/zarch/pool.py --- a/rpython/jit/backend/zarch/pool.py +++ b/rpython/jit/backend/zarch/pool.py @@ -65,6 +65,9 @@ arg = op.getarg(0) if arg.is_constant(): self.reserve_literal(8, arg) + arg = op.getarg(1) + if arg.is_constant(): + self.reserve_literal(8, arg) arg = op.getarg(2) if arg.is_constant(): self.reserve_literal(8, arg) @@ -78,10 +81,9 @@ arg = op.getarg(0) if arg.is_constant(): self.reserve_literal(8, arg) - if opnum == rop.GC_LOAD_INDEXED_R: - arg = op.getarg(1) - if arg.is_constant(): - self.reserve_literal(8, arg) + arg = op.getarg(1) + if arg.is_constant(): + self.reserve_literal(8, arg) return elif op.is_call_release_gil(): for arg in op.getarglist()[1:]: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit