i386: Enable AVX512 memory broadcast for INT andnot

Programming / Compilers / GCC - hjl [138bc75d-0d04-0410-961f-82ee72b054a4] - 22 October 2018 07:35 EDT

Many AVX512 vector operations can broadcast from a scalar memory source. This patch enables memory broadcast for INT andnot operations.

gcc/

PR target/72782
- config/i386/sse.md (*andnot3_bcst): New.

gcc/testsuite/

PR target/72782
- gcc.target/i386/avx512f-andn-di-zmm-1.c: New test.
- gcc.target/i386/avx512f-andn-si-zmm-1.c: Likewise.
- gcc.target/i386/avx512f-andn-si-zmm-2.c: Likewise.
- gcc.target/i386/avx512f-andn-si-zmm-3.c: Likewise.
- gcc.target/i386/avx512f-andn-si-zmm-4.c: Likewise.
- gcc.target/i386/avx512f-andn-si-zmm-5.c: Likewise.
- gcc.target/i386/avx512vl-andn-si-xmm-1.c: Likewise.
- gcc.target/i386/avx512vl-andn-si-ymm-1.c: Likewise.

e5503481edf i386: Enable AVX512 memory broadcast for INT andnot
gcc/ChangeLog | 5 +++++
gcc/config/i386/sse.md | 13 +++++++++++++
gcc/testsuite/ChangeLog | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-andn-di-zmm-1.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-andn-si-zmm-1.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-andn-si-zmm-2.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-andn-si-zmm-3.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-andn-si-zmm-4.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-andn-si-zmm-5.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512vl-andn-si-xmm-1.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512vl-andn-si-ymm-1.c | 12 ++++++++++++
11 files changed, 126 insertions(+)

Upstream: gcc.gnu.org


  • Share