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 middle-end/101955] (signed<<31)>>31 should become -(signed&1)
Date: Fri, 04 Aug 2023 07:10:33 +0000	[thread overview]
Message-ID: <bug-101955-4-zWk8PJEi2N@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101955-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:9020da78df2854f14f8b1d38b58a6d3b77a4b731

commit r14-2977-g9020da78df2854f14f8b1d38b58a6d3b77a4b731
Author: Drew Ross <drross@redhat.com>
Date:   Fri Aug 4 09:08:05 2023 +0200

    match.pd: Canonicalize (signed x << c) >> c [PR101955]

    Canonicalizes (signed x << c) >> c into the lowest
    precision(type) - c bits of x IF those bits have a mode precision or a
    precision of 1. Also combines this rule with (unsigned x << c) >> c -> x &
    ((unsigned)-1 >> c) to prevent duplicate pattern.

            PR middle-end/101955
            * match.pd ((signed x << c) >> c): New canonicalization.

            * gcc.dg/pr101955.c: New test.

  parent reply	other threads:[~2023-08-04  7:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18  5:47 [Bug middle-end/101955] New: " pinskia at gcc dot gnu.org
2021-08-18  5:48 ` [Bug middle-end/101955] " pinskia at gcc dot gnu.org
2021-08-18  6:49 ` rguenth at gcc dot gnu.org
2021-08-18 15:51 ` schwab@linux-m68k.org
2021-08-18 17:51 ` pinskia at gcc dot gnu.org
2021-08-18 19:22 ` jakub at gcc dot gnu.org
2021-11-11  0:21 ` navidrahimi at microsoft dot com
2023-08-04  7:10 ` cvs-commit at gcc dot gnu.org [this message]
2023-10-11  7:09 ` cvs-commit at gcc dot gnu.org
2023-10-20 23:08 ` cvs-commit at gcc dot gnu.org
2023-10-30 16:23 ` cvs-commit 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-101955-4-zWk8PJEi2N@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).