i386: Enable AVX512 memory broadcast for FP add

Programming / Compilers / GCC - hjl [138bc75d-0d04-0410-961f-82ee72b054a4] - 19 October 2018 09:13 EDT

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

gcc/

PR target/72782
- config/i386/sse.md (*3_bcst_1): New. (*add3_bcst_2): Likewise.

gcc/testsuite/

PR target/72782
- gcc.target/i386/avx512-binop-1.h: New file.
- gcc.target/i386/avx512-binop-2.h: Likewise.
- gcc.target/i386/avx512-binop-3.h: Likewise.
- gcc.target/i386/avx512-binop-4.h: Likewise.
- gcc.target/i386/avx512-binop-5.h: Likewise.
- gcc.target/i386/avx512-binop-6.h: Likewise.
- gcc.target/i386/avx512f-add-df-zmm-1.c: Likewise.
- gcc.target/i386/avx512f-add-sf-zmm-1.c: Likewise.
- gcc.target/i386/avx512f-add-sf-zmm-2.c: Likewise.
- gcc.target/i386/avx512f-add-sf-zmm-3.c: Likewise.
- gcc.target/i386/avx512f-add-sf-zmm-4.c: Likewise.
- gcc.target/i386/avx512f-add-sf-zmm-5.c: Likewise.
- gcc.target/i386/avx512f-add-sf-zmm-6.c: Likewise.
- gcc.target/i386/avx512f-sub-df-zmm-1.c: Likewise.
- gcc.target/i386/avx512f-sub-sf-zmm-1.c: Likewise.
- gcc.target/i386/avx512f-sub-sf-zmm-2.c: Likewise.
- gcc.target/i386/avx512f-sub-sf-zmm-3.c: Likewise.
- gcc.target/i386/avx512f-sub-sf-zmm-4.c: Likewise.
- gcc.target/i386/avx512f-sub-sf-zmm-5.c: Likewise.
- gcc.target/i386/avx512vl-add-sf-xmm-1.c: Likewise.
- gcc.target/i386/avx512vl-add-sf-ymm-1.c: Likewise.
- gcc.target/i386/avx512vl-sub-sf-xmm-1.c: Likewise.
- gcc.target/i386/avx512vl-sub-sf-ymm-1.c: Likewise.

3ad7843329e i386: Enable AVX512 memory broadcast for FP add
gcc/ChangeLog | 7 ++++++
gcc/config/i386/sse.md | 28 ++++++++++++++++++++++
gcc/testsuite/ChangeLog | 27 +++++++++++++++++++++
gcc/testsuite/gcc.target/i386/avx512-binop-1.h | 12 ++++++++++
gcc/testsuite/gcc.target/i386/avx512-binop-2.h | 12 ++++++++++
gcc/testsuite/gcc.target/i386/avx512-binop-3.h | 15 ++++++++++++
gcc/testsuite/gcc.target/i386/avx512-binop-4.h | 12 ++++++++++
gcc/testsuite/gcc.target/i386/avx512-binop-5.h | 14 +++++++++++
gcc/testsuite/gcc.target/i386/avx512-binop-6.h | 14 +++++++++++
.../gcc.target/i386/avx512f-add-df-zmm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512f-add-sf-zmm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512f-add-sf-zmm-2.c | 12 ++++++++++
.../gcc.target/i386/avx512f-add-sf-zmm-3.c | 12 ++++++++++
.../gcc.target/i386/avx512f-add-sf-zmm-4.c | 12 ++++++++++
.../gcc.target/i386/avx512f-add-sf-zmm-5.c | 12 ++++++++++
.../gcc.target/i386/avx512f-add-sf-zmm-6.c | 12 ++++++++++
.../gcc.target/i386/avx512f-sub-df-zmm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512f-sub-sf-zmm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512f-sub-sf-zmm-2.c | 12 ++++++++++
.../gcc.target/i386/avx512f-sub-sf-zmm-3.c | 12 ++++++++++
.../gcc.target/i386/avx512f-sub-sf-zmm-4.c | 12 ++++++++++
.../gcc.target/i386/avx512f-sub-sf-zmm-5.c | 12 ++++++++++
.../gcc.target/i386/avx512vl-add-sf-xmm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512vl-add-sf-ymm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512vl-sub-sf-xmm-1.c | 12 ++++++++++
.../gcc.target/i386/avx512vl-sub-sf-ymm-1.c | 12 ++++++++++
26 files changed, 345 insertions(+)

Upstream: gcc.gnu.org


  • Share