gcc/
PR middle-end/68066
* tree.c (build_truth_vector_type): Support BLK mode
returned for boolean vector.
From-SVN: r229256
+2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ PR middle-end/68066
+ * tree.c (build_truth_vector_type): Support BLK mode
+ returned for boolean vector.
+
2015-10-23 Alan Hayward <alan.hayward@arm.com>
PR tree-optimization/65947
gcc_assert (mask_mode != VOIDmode);
- unsigned HOST_WIDE_INT esize = GET_MODE_BITSIZE (mask_mode) / nunits;
- gcc_assert (esize * nunits == GET_MODE_BITSIZE (mask_mode));
+ unsigned HOST_WIDE_INT vsize;
+ if (mask_mode == BLKmode)
+ vsize = vector_size * BITS_PER_UNIT;
+ else
+ vsize = GET_MODE_BITSIZE (mask_mode);
+
+ unsigned HOST_WIDE_INT esize = vsize / nunits;
+ gcc_assert (esize * nunits == vsize);
tree bool_type = build_nonstandard_boolean_type (esize);