re PR tree-optimization/71259 (GCC trunk emits wrong code)
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Jun 2016 18:35:03 +0000 (20:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Jun 2016 18:35:03 +0000 (20:35 +0200)
commit158beb4ab3f6adace5f3c328cba3470eb1cc6357
tree1f0552a56d612f2fbe874cd5e779d99ca7f51555
parent8af83210748a6ef2d0a7f92c103d7f2baddbcabc
re PR tree-optimization/71259 (GCC trunk emits wrong code)

PR tree-optimization/71259
* tree-vect-slp.c (vect_get_constant_vectors): For
VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
one for constant op, and use COND_EXPR for non-constant.

* gcc.dg/vect/pr71259.c: New test.

From-SVN: r237147
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr71259.c [new file with mode: 0644]
gcc/tree-vect-slp.c