Update extract_even_odd w/ AVX-512BW insns.
authorKirill Yukhin <kirill.yukhin@intel.com>
Fri, 2 Oct 2015 14:36:41 +0000 (14:36 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 2 Oct 2015 14:36:41 +0000 (14:36 +0000)
commit1edc26adde4c280f42605745d3575a9e8c5ba9d1
tree898925099dd89d15bbea12571dbdd71caf97f402
parentbea9065228d855cc5d0aed44e77f506fd4e67e2b
Update extract_even_odd w/ AVX-512BW insns.

gcc/
* config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
(expand_vec_perm_even_odd_1): Handle V64QImode.
(ix86_expand_vec_perm_const_1): Try expansion with
expand_vec_perm_even_odd_trunc as well.
* config/i386/sse.md (VI124_AVX512F): Rename to ...
(define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
to V54QI.
(define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
(define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
to V32HI and V16SI.
(define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
(define_expand "vec_pack_trunc_<mode>"): Update iterator name.
(define_expand "vec_unpacks_lo_<mode>"): Ditto.
(define_expand "vec_unpacks_hi_<mode>"): Ditto.
(define_expand "vec_unpacku_lo_<mode>"): Ditto.
(define_expand "vec_unpacku_hi_<mode>"): Ditto.

gcc/testsuite/
* gcc.target/i386/vect-pack-trunc-1.c: New test.
* gcc.target/i386/vect-pack-trunc-2.c: Ditto.
* gcc.target/i386/vect-perm-even-1.c: Ditto.
* gcc.target/i386/vect-perm-odd-1.c: Ditto.
* gcc.target/i386/vect-unpack-1.c: Ditto.
* gcc.target/i386/vect-unpack-2.c: Ditto.

From-SVN: r228394
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/vect-pack-trunc-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/vect-pack-trunc-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/vect-perm-even-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/vect-perm-odd-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/vect-unpack-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/vect-unpack-2.c [new file with mode: 0644]