middle-end/98793 - properly handle BLKmode vectors in vector_element_bits
authorRichard Biener <rguenther@suse.de>
Fri, 22 Jan 2021 13:32:39 +0000 (14:32 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 22 Jan 2021 14:23:54 +0000 (15:23 +0100)
commit4be156d6bef317b8704052f11431457a577ed564
treebc045cc2a7a8b2aebcc5d6de30a3619cb2f5324e
parente3a8ef8ef2ac077b393687624b09db6ab31c7746
middle-end/98793 - properly handle BLKmode vectors in vector_element_bits

The previous change made AVX512 mask vectors correct but disregarded
the possibility of generic (BLKmode) boolean vectors which are exposed
by the frontends already.

2021-01-22  Richard Biener  <rguenther@suse.de>

PR middle-end/98793
* tree.c (vector_element_bits): Key single-bit bool vector on
integer mode rather than not vector mode.

* gcc.dg/pr98793.c: New testcase.
gcc/testsuite/gcc.dg/pr98793.c [new file with mode: 0644]
gcc/tree.c