i386: Enable AVX512 memory broadcast for FP mul

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

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

gcc/

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

gcc/testsuite/

PR target/72782
- gcc.target/i386/avx512f-mul-df-zmm-1.c: New test.
- gcc.target/i386/avx512f-mul-sf-zmm-1.c: Likewise.
- gcc.target/i386/avx512f-mul-sf-zmm-2.c: Likewise.
- gcc.target/i386/avx512f-mul-sf-zmm-3.c: Likewise.
- gcc.target/i386/avx512f-mul-sf-zmm-4.c: Likewise.
- gcc.target/i386/avx512f-mul-sf-zmm-5.c: Likewise.
- gcc.target/i386/avx512f-mul-sf-zmm-6.c: Likewise.
- gcc.target/i386/avx512vl-mul-sf-xmm-1.c: Likewise.
- gcc.target/i386/avx512vl-mul-sf-ymm-1.c: Likewise.

5a87af282fe i386: Enable AVX512 memory broadcast for FP mul
gcc/ChangeLog | 5 +++++
gcc/config/i386/sse.md | 12 ++++++++++++
gcc/testsuite/ChangeLog | 13 +++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-df-zmm-1.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-sf-zmm-1.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-sf-zmm-2.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-sf-zmm-3.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-sf-zmm-4.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-sf-zmm-5.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512f-mul-sf-zmm-6.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512vl-mul-sf-xmm-1.c | 12 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512vl-mul-sf-ymm-1.c | 12 ++++++++++++
12 files changed, 138 insertions(+)

Upstream: gcc.gnu.org


  • Share