PR tree-optimization/78938
commit830ec526ecfdf082b36afa86515f8f0cd2a2b7cf
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jan 2017 11:44:52 +0000 (9 11:44 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jan 2017 11:44:52 +0000 (9 11:44 +0000)
tree82b6b86b69584e061f97412f8629d6a14f5e0b9c
parent945a3e676b56243016e54dfbc747dbfb5a5b2a6d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244223 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr78938.c [new file with mode: 0644]
gcc/tree-vect-stmts.c