+2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ PR target/69421
+ * tree-vect-stmts.c (vectorizable_condition): Check vectype
+ of operands is compatible with a statement vectype.
+
2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
* doc/extend.texi (scalar_storage_order type attribute): Fix typo and
+2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ PR target/69421
+ * gcc.dg/pr69421.c: New test.
+
2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
* gcc.target/aarch64/simd/vcvt_s64_f64_1.c: New.
tree vectype = STMT_VINFO_VECTYPE (stmt_info);
int nunits = TYPE_VECTOR_SUBPARTS (vectype);
+ tree vectype1 = NULL_TREE, vectype2 = NULL_TREE;
if (slp_node || PURE_SLP_STMT (stmt_info))
ncopies = 1;
return false;
gimple *def_stmt;
- if (!vect_is_simple_use (then_clause, stmt_info->vinfo, &def_stmt, &dt))
+ if (!vect_is_simple_use (then_clause, stmt_info->vinfo, &def_stmt, &dt,
+ &vectype1))
+ return false;
+ if (!vect_is_simple_use (else_clause, stmt_info->vinfo, &def_stmt, &dt,
+ &vectype2))
return false;
- if (!vect_is_simple_use (else_clause, stmt_info->vinfo, &def_stmt, &dt))
+
+ if (vectype1 && !useless_type_conversion_p (vectype, vectype1))
+ return false;
+
+ if (vectype2 && !useless_type_conversion_p (vectype, vectype2))
return false;
masked = !COMPARISON_CLASS_P (cond_expr);