re PR tree-optimization/91201 (SIMD not generated for horizontal sum of bytes in...
authorJakub Jelinek <jakub@redhat.com>
Wed, 31 Jul 2019 09:22:48 +0000 (11:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 31 Jul 2019 09:22:48 +0000 (11:22 +0200)
commit1104467f3933078a019df1fb89149f5da39f7953
tree45ba19a8b68b968ee8bf1d9e602a462501e1f814
parent89626179b6fe42cbd58c715808f7c6401879757f
re PR tree-optimization/91201 (SIMD not generated for horizontal sum of bytes in array)

PR tree-optimization/91201
* config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
(REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
TARGET_AVX512F.
(reduc_plus_scal_<mode>): Improve formatting by introducing
a temporary.

* gcc.target/i386/sse2-pr91201.c: New test.
* gcc.target/i386/avx2-pr91201.c: New test.
* gcc.target/i386/avx512bw-pr91201.c: New test.

From-SVN: r273927
gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx2-pr91201.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512bw-pr91201.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/sse2-pr91201.c [new file with mode: 0644]