Author: Richard Plangger <planri...@gmail.com> Branch: s390x-backend Changeset: r81783:fac01ad9537d Date: 2016-01-15 10:48 +0100 http://bitbucket.org/pypy/pypy/changeset/fac01ad9537d/
Log: more than one pool constant did not correctly increment the pool cursor 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 @@ -129,19 +129,19 @@ written = 0 if self.constant_64_ones != -1: asm.mc.write('\xFF' * 8) - self.constant_64_ones = self.size + self.constant_64_ones = self.size + written written += 8 if self.constant_64_zeros != -1: asm.mc.write('\x00' * 8) - self.constant_64_zeros = self.size + self.constant_64_zeros = self.size + written written += 8 if self.constant_64_sign_bit != -1: asm.mc.write('\x80' + ('\x00' * 7)) - self.constant_64_sign_bit = self.size + self.constant_64_sign_bit = self.size + written written += 8 if self.constant_max_64_positive != -1: asm.mc.write('\x7F' + ('\xFF' * 7)) - self.constant_max_64_positive = self.size + self.constant_max_64_positive = self.size + written written += 8 self.size += written if not we_are_translated(): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit