public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/113705] [14 Regression] ICE in decompose, at wide-int.h:1049 on aarch64-linux-gnu since r14-8680-g2f14c0dbb78985
Date: Thu, 01 Feb 2024 16:56:43 +0000	[thread overview]
Message-ID: <bug-113705-4-txswmHgqiT@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-113705-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- gcc/tree-ssa-math-opts.cc.jj        2024-02-01 09:14:16.623549514 +0100
+++ gcc/tree-ssa-math-opts.cc   2024-02-01 17:48:59.151771177 +0100
@@ -2572,7 +2572,8 @@ is_widening_mult_rhs_p (tree type, tree
              if (is_gimple_assign (stmt)
                  && gimple_assign_rhs_code (stmt) == BIT_AND_EXPR
                  && TREE_CODE (gimple_assign_rhs2 (stmt)) == INTEGER_CST
-                 && wi::to_wide (gimple_assign_rhs2 (stmt))
+                 && wide_int::from (wi::to_wide (gimple_assign_rhs2 (stmt)),
+                                    prec, TYPE_SIGN (TREE_TYPE (rhs)))
                     == wi::mask (hprec, false, prec))
                *new_rhs_out = gimple_assign_rhs1 (stmt);
              else
fixes the ICE.

  parent reply	other threads:[~2024-02-01 16:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01 14:07 [Bug middle-end/113705] New: [14 Regression] ICE in decompose, at wide-int.h:1049 on aarch64-linux-gnu doko at gcc dot gnu.org
2024-02-01 14:13 ` [Bug middle-end/113705] " doko at gcc dot gnu.org
2024-02-01 14:13 ` rguenth at gcc dot gnu.org
2024-02-01 15:35 ` acoplan at gcc dot gnu.org
2024-02-01 16:09 ` mpolacek at gcc dot gnu.org
2024-02-01 16:22 ` [Bug middle-end/113705] [14 Regression] ICE in decompose, at wide-int.h:1049 on aarch64-linux-gnu since r14-8680-g2f14c0dbb78985 acoplan at gcc dot gnu.org
2024-02-01 16:45 ` jakub at gcc dot gnu.org
2024-02-01 16:56 ` jakub at gcc dot gnu.org [this message]
2024-02-01 17:37 ` xry111 at gcc dot gnu.org
2024-02-01 18:08 ` jakub at gcc dot gnu.org
2024-02-01 18:29 ` xry111 at gcc dot gnu.org
2024-02-02  9:58 ` doko at gcc dot gnu.org
2024-02-02 10:26 ` cvs-commit at gcc dot gnu.org
2024-02-02 10:33 ` 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-113705-4-txswmHgqiT@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).