https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110232
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:0f3d07e16fec7bea2fd033d9ec8ff08ea7effa39 commit r14-1779-g0f3d07e16fec7bea2fd033d9ec8ff08ea7effa39 Author: Richard Biener <rguent...@suse.de> Date: Tue Jun 13 09:19:34 2023 +0200 middle-end/110232 - fix native interpret of vector <signed-boolean:1> The following fixes native interpretation of a buffer as boolean vector with bit-precision elements such as AVX512 vectors. The check whether the buffer covers the whole vector was broken for bit-precision elements and the following instead implements it based on the vector type size. PR middle-end/110232 * fold-const.cc (native_interpret_vector): Use TYPE_SIZE_UNIT to check whether the buffer covers the whole vector. * gcc.target/i386/pr110232.c: New testcase.