https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70329
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 30 12:44:30 2016 New Revision: 234566 URL: https://gcc.gnu.org/viewcvs?rev=234566&root=gcc&view=rev Log: Backported from mainline 2016-03-22 Jakub Jelinek <ja...@redhat.com> PR target/70329 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i] in a way that works also for AVX512BW. * gcc.target/i386/avx512bw-pr70329-1.c: New test. * gcc.target/i386/avx512bw-pr70329-2.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/avx512bw-pr70329-1.c branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/avx512bw-pr70329-2.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/i386/i386.c branches/gcc-5-branch/gcc/testsuite/ChangeLog