re PR tree-optimization/78938 (ICE in expand_vec_cond_expr, at optabs.c:5636 w/ ...
authorJakub Jelinek <jakub@redhat.com>
Mon, 9 Jan 2017 11:44:52 +0000 (12:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 9 Jan 2017 11:44:52 +0000 (12:44 +0100)
commit01216d27de7de69ce1f09697e5f61ab414113824
tree82b6b86b69584e061f97412f8629d6a14f5e0b9c
parentc0d4fec75c36e60c0305c585310a8feb89a04a1d
re PR tree-optimization/78938 (ICE in expand_vec_cond_expr, at optabs.c:5636 w/ -mavx512bw -ftree-loop-vectorize -O1)

PR tree-optimization/78938
* tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
{EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
fixes.

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

From-SVN: r244223
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr78938.c [new file with mode: 0644]
gcc/tree-vect-stmts.c