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/105773] [Aarch64] Failure to optimize and+cmp to tst
Date: Thu, 13 Oct 2022 13:56:41 +0000	[thread overview]
Message-ID: <bug-105773-4-1SLy8iGWeB@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105773-4@http.gcc.gnu.org/bugzilla/>

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

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

https://gcc.gnu.org/g:1cccf644ff92ac1145abdbf255d1862dd787875b

commit r13-3274-g1cccf644ff92ac1145abdbf255d1862dd787875b
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Thu Oct 13 14:41:55 2022 +0100

    [AArch64] Improve bit tests [PR105773]

    Since AArch64 sets all flags on logical operations, comparisons with zero
    can be combined into an AND even if the condition is LE or GT. Add a new
    CC_NZV mode used by ANDS/BICS/TST instructions.

    gcc/
            PR target/105773
            * config/aarch64/aarch64.cc (aarch64_select_cc_mode): Allow
            GT/LE for merging compare with zero into AND.
            (aarch64_get_condition_code_1): Add CC_NZVmode support.
            * config/aarch64/aarch64-modes.def: Add CC_NZV.
            * config/aarch64/aarch64.md: Use CC_NZV in cmp+and patterns.

    gcc/testsuite/
            PR target/105773
            * gcc.target/aarch64/ands_2.c: Test for ANDS.
            * gcc.target/aarch64/bics_2.c: Test for BICS.
            * gcc.target/aarch64/tst_2.c: Test for TST.
            * gcc.target/aarch64/tst_imm_split_1.c: Fix test.

  parent reply	other threads:[~2022-10-13 13:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-30 13:29 [Bug target/105773] New: " gabravier at gmail dot com
2022-06-08 12:37 ` [Bug target/105773] " rearnsha at gcc dot gnu.org
2022-06-08 12:41 ` rearnsha at gcc dot gnu.org
2022-06-22 21:34 ` pinskia at gcc dot gnu.org
2022-10-13 13:56 ` cvs-commit at gcc dot gnu.org [this message]
2022-10-13 13:58 ` wilco at gcc dot gnu.org

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-105773-4-1SLy8iGWeB@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).