[PATCH] i?86 vec_perm fixes and improvements

2011-10-18 Thread Jakub Jelinek
Hi! Now that there is a better testsuite for constant reshuffling, this patch fixes various issues I found plus improves various permutations. Bootstrapped/regtested on x86_64-linux and i686-linux, additionally tested with GCC_TEST_RUN_EXPENSIVE=1 make check-gcc

Re: [PATCH] i?86 vec_perm fixes and improvements

2011-10-18 Thread Richard Henderson
On 10/18/2011 08:30 AM, Jakub Jelinek wrote: * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use mode SUBREG of operands[0] as target. (valid_perm_using_mode_p): Don't ignore higher bits of d-perm. (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.