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 rtl-optimization/105333] [10/11/12 Regression] ICE: in simplify_subreg, at simplify-rtx.cc:7346 with -Og -fno-tree-coalesce-vars -fno-tree-fre since r10-1094-g9919f5fe87a3def1
Date: Fri, 22 Apr 2022 11:38:51 +0000	[thread overview]
Message-ID: <bug-105333-4-2nbjIdoeys@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105333-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 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:7092b7aea122a91824d048aeb23834cf1d19b1a1

commit r12-8224-g7092b7aea122a91824d048aeb23834cf1d19b1a1
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Apr 22 13:38:11 2022 +0200

    rtlanal: Fix up replace_rtx [PR105333]

    The following testcase FAILs, because replace_rtx replaces a REG with
    CONST_WIDE_INT inside of a SUBREG, which is an invalid transformation
    because a SUBREG relies on SUBREG_REG having non-VOIDmode but
    CONST_WIDE_INT has VOIDmode.

    replace_rtx already has code to deal with it, but it was doing
    it only for CONST_INTs.  The following patch does it also for
    VOIDmode CONST_DOUBLE or CONST_WIDE_INT.

    2022-04-22  Jakub Jelinek  <jakub@redhat.com>

            PR rtl-optimization/105333
            * rtlanal.cc (replace_rtx): Use simplify_subreg or
            simplify_unary_operation if CONST_SCALAR_INT_P rather than just
            CONST_INT_P.

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

  parent reply	other threads:[~2022-04-22 11:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-21 10:47 [Bug rtl-optimization/105333] New: [10/11/12 Regression] ICE: in simplify_subreg, at simplify-rtx.cc:7346 with -Og -fno-tree-coalesce-vars -fno-tree-fre zsojka at seznam dot cz
2022-04-21 11:19 ` [Bug rtl-optimization/105333] " rguenth at gcc dot gnu.org
2022-04-21 12:38 ` [Bug rtl-optimization/105333] [10/11/12 Regression] ICE: in simplify_subreg, at simplify-rtx.cc:7346 with -Og -fno-tree-coalesce-vars -fno-tree-fre since r10-1094-g9919f5fe87a3def1 marxin at gcc dot gnu.org
2022-04-21 13:55 ` jakub at gcc dot gnu.org
2022-04-22 11:38 ` cvs-commit at gcc dot gnu.org [this message]
2022-04-22 11:39 ` [Bug rtl-optimization/105333] [10/11 " jakub at gcc dot gnu.org
2022-05-06 23:44 ` cvs-commit at gcc dot gnu.org
2022-05-09 11:26 ` [Bug rtl-optimization/105333] [10 " jakub at gcc dot gnu.org
2022-05-10  8:26 ` cvs-commit at gcc dot gnu.org
2022-05-10 10:29 ` jakub 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-105333-4-2nbjIdoeys@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).