Commit f819b3b2 by Ilya Enkovich Committed by Ilya Enkovich

re PR middle-end/68066 (ICE in max_value, at wide-int.cc)

gcc/

	PR middle-end/68066
	* tree.c (build_truth_vector_type): Support BLK mode
	returned for boolean vector.

From-SVN: r229256
parent abcb651b
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
......@@ -10671,8 +10671,14 @@ build_truth_vector_type (unsigned nunits, unsigned vector_size)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment