* tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
has a proper number of elements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234104
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
+ has a proper number of elements.
+
2016-03-10 Alan Modra <amodra@gmail.com>
PR rtl-optimization/69195
if (!mask_vectype)
mask_vectype = get_mask_type_for_scalar_type (TREE_TYPE (vectype));
- if (!mask_vectype || !VECTOR_BOOLEAN_TYPE_P (mask_vectype))
+ if (!mask_vectype || !VECTOR_BOOLEAN_TYPE_P (mask_vectype)
+ || TYPE_VECTOR_SUBPARTS (mask_vectype) != TYPE_VECTOR_SUBPARTS (vectype))
return false;
if (is_store)