i386.c (ix86_expand_vec_perm): Add handle one-operand permutation for TARGET_AVX512F.
authorYuri Rumyantsev <ysrumyan@gmail.com>
Mon, 4 Jul 2016 14:06:27 +0000 (14:06 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Mon, 4 Jul 2016 14:06:27 +0000 (14:06 +0000)
commit430bb38e4b1cdc41d52d85324dac4bba9deeb23e
treeb2e4e6b910488050c7e03244e2c4e4818c2eb571
parent5f5f7b7d730a2065a784c089af386a593ee4b575
i386.c (ix86_expand_vec_perm): Add handle one-operand permutation for TARGET_AVX512F.

gcc/
* config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
permutation for TARGET_AVX512F.
(ix86_expand_vec_one_operand_perm_avx512): New function.
(expand_vec_perm_1): Invoke introduced function.
* tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
it may be not valid after vectorization.

gcc/testsuite/
* gcc/testsuite/gcc.target/i386/avx512f-vect-perm-1.c: New test.
* gcc/testsuite/gcc.target/i386/avx512f-vect-perm-2.c: New test.

From-SVN: r237982
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512f-vect-perm-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512f-vect-perm-2.c [new file with mode: 0644]