i386: Enable AVX512 memory broadcast for INT logic

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

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

gcc/

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

gcc/testsuite/

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

7ef0b738b59 i386: Enable AVX512 memory broadcast for INT logic
gcc/ChangeLog | 5 ++++
gcc/config/i386/sse.md | 12 +++++++++
gcc/testsuite/ChangeLog | 31 ++++++++++++++++++++++
.../gcc.target/i386/avx512f-and-di-zmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512f-and-si-zmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512f-and-si-zmm-2.c | 12 +++++++++
.../gcc.target/i386/avx512f-and-si-zmm-3.c | 12 +++++++++
.../gcc.target/i386/avx512f-and-si-zmm-4.c | 12 +++++++++
.../gcc.target/i386/avx512f-and-si-zmm-5.c | 12 +++++++++
.../gcc.target/i386/avx512f-and-si-zmm-6.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-di-zmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-si-zmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-si-zmm-2.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-si-zmm-3.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-si-zmm-4.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-si-zmm-5.c | 12 +++++++++
.../gcc.target/i386/avx512f-or-si-zmm-6.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-di-zmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-si-zmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-si-zmm-2.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-si-zmm-3.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-si-zmm-4.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-si-zmm-5.c | 12 +++++++++
.../gcc.target/i386/avx512f-xor-si-zmm-6.c | 12 +++++++++
.../gcc.target/i386/avx512vl-and-si-xmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512vl-and-si-ymm-1.c | 12 +++++++++
.../gcc.target/i386/avx512vl-or-si-xmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512vl-or-si-ymm-1.c | 12 +++++++++
.../gcc.target/i386/avx512vl-xor-si-xmm-1.c | 12 +++++++++
.../gcc.target/i386/avx512vl-xor-si-ymm-1.c | 12 +++++++++
30 files changed, 372 insertions(+)

Upstream: gcc.gnu.org


  • Share