https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95713
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:0c7d18d51a8e9abd085afd0b01743662fd0419fa commit r10-8323-g0c7d18d51a8e9abd085afd0b01743662fd0419fa Author: Jakub Jelinek <ja...@redhat.com> Date: Thu Jun 18 12:08:06 2020 +0200 forwprop: simplify_vector_constructor follow-up fix [PR95713] As the following testcase shows, the exception for the aarch64 vec_pack_trunc_di is not sufficient on x86, the halfvectype "vectors" have SImode but the x86 vec_pack_trunc_si meant for the bool bitmasks combines 2x SImode into DImode, while in the testcase the halfvectype is 1x SImode "vector" with SImode and result is 2x HImode "vector" with SImode. Richard Sandiford's reply: FWIW, since the aarch64 case was only found by inspection and might not be useful, personally I'd prefer to drop that case after all. 2020-06-18 Jakub Jelinek <ja...@redhat.com> PR target/95713 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow scalar mode halfvectype other than vector boolean for VEC_PACK_TRUNC_EXPR. * gcc.dg/pr95713.c: New test. (cherry picked from commit 9a875db43cd4210843c480c8df26a1d6624d057d)