public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/96891] [AVX512] For vector compare to dest vector, avx512 vector compare could be lowered to avx version
Date: Fri, 22 Jan 2021 04:37:13 +0000	[thread overview]
Message-ID: <bug-96891-4-hGxTdrB9uv@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-96891-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:ee78c20e74d30284fee36e22a64e86e45e676029

commit r11-6849-gee78c20e74d30284fee36e22a64e86e45e676029
Author: liuhongt <hongtao.liu@intel.com>
Date:   Fri Dec 18 15:56:06 2020 +0800

    Lower AVX512 vector comparison to AVX version when dest is vector.

    gcc/ChangeLog:

            PR target/96891
            PR target/98348
            * config/i386/sse.md (VI_128_256): New mode iterator.
            (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
             *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
             *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
            define_insn_and_split to lower avx512 vector comparison to avx
            version when dest is vector.
            (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
            define_insn_and_split for negating the comparison result.
            * config/i386/predicates.md (float_vector_all_ones_operand):
            New predicate.
            * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
            general NOT operator without UNSPEC_MASKOP.

    gcc/testsuite/ChangeLog:

            PR target/96891
            PR target/98348
            * gcc.target/i386/avx512bw-pr96891-1.c: New test.
            * gcc.target/i386/avx512f-pr96891-1.c: New test.
            * gcc.target/i386/avx512f-pr96891-2.c: New test.
            * gcc.target/i386/avx512f-pr96891-3.c: New test.
            * g++.target/i386/avx512f-pr96891-1.C: New test.
            * gcc.target/i386/bitwise_mask_op-3.c: Adjust testcase.

      parent reply	other threads:[~2021-01-22  4:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-02  3:10 [Bug target/96891] New: " crazylht at gmail dot com
2021-01-04  6:51 ` [Bug target/96891] " crazylht at gmail dot com
2021-01-22  4:37 ` cvs-commit at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-96891-4-hGxTdrB9uv@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).