https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72782

--- Comment #13 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Mon Oct 22 07:29:03 2018
New Revision: 265369

URL: https://gcc.gnu.org/viewcvs?rev=265369&root=gcc&view=rev
Log:
i386: Enable AVX512 memory broadcast for INT logic

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 (*<code><mode>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.

Added:
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-di-zmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-si-zmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-si-zmm-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-si-zmm-3.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-si-zmm-4.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-si-zmm-5.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-and-si-zmm-6.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-di-zmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-si-zmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-si-zmm-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-si-zmm-3.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-si-zmm-4.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-si-zmm-5.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-or-si-zmm-6.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-di-zmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-si-zmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-si-zmm-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-si-zmm-3.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-si-zmm-4.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-si-zmm-5.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-xor-si-zmm-6.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-and-si-xmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-and-si-ymm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-or-si-xmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-or-si-ymm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-xor-si-xmm-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-xor-si-ymm-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog

Reply via email to