Author: Richard Plangger <planri...@gmail.com> Branch: ppc-vsx-support Changeset: r85538:2a82f60bb1d6 Date: 2016-07-04 17:24 +0200 http://bitbucket.org/pypy/pypy/changeset/2a82f60bb1d6/
Log: updates the ppc opcode for vec_int_xor (veqv was used instead of vxor) diff --git a/rpython/jit/backend/ppc/vector_ext.py b/rpython/jit/backend/ppc/vector_ext.py --- a/rpython/jit/backend/ppc/vector_ext.py +++ b/rpython/jit/backend/ppc/vector_ext.py @@ -251,7 +251,7 @@ def emit_vec_int_xor(self, op, arglocs, regalloc): resloc, loc0, loc1, sizeloc = arglocs - self.mc.veqv(resloc.value, loc0.value, loc1.value) + self.mc.vxor(resloc.value, loc0.value, loc1.value) def emit_vec_int_signext(self, op, arglocs, regalloc): resloc, loc0 = arglocs diff --git a/rpython/jit/metainterp/test/test_vector.py b/rpython/jit/metainterp/test/test_vector.py --- a/rpython/jit/metainterp/test/test_vector.py +++ b/rpython/jit/metainterp/test/test_vector.py @@ -207,9 +207,9 @@ bits = size*8 integers = st.integers(min_value=-2**(bits-1), max_value=2**(bits-1)-1) la = data.draw(st.lists(integers, min_size=10, max_size=150)) - #la = [1,2,3,4,5,6,7,8,9,10,11,12,13] + #la = [0] * 10 #1,2,3,4,5,6,7,8,9,10,11,12,13] l = len(la) - #lb = [1,2,3,4,5,6,7,8,9,10,11,12,13] + #lb = [0] * 10 # [1,2,3,4,5,6,7,8,9,10,11,12,13] lb = data.draw(st.lists(integers, min_size=l, max_size=l)) rawstorage = RawStorage() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit