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 target/98998] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427
Date: Thu, 11 Feb 2021 11:54:39 +0000	[thread overview]
Message-ID: <bug-98998-4-O16K6VGMft@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98998-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- gcc/config/arm/arm.md.jj    2021-01-04 10:25:44.404170742 +0100
+++ gcc/config/arm/arm.md       2021-02-11 12:50:26.049604711 +0100
@@ -9216,6 +9216,11 @@
       else
        {
          rtx mem = force_const_mem (SImode, operands[1]);
+         if (!general_operand (mem, SImode))
+           {
+             emit_move_insn (operands[2], XEXP (mem, 0));
+             mem = replace_equiv_address (mem, operands[2], false);
+           }
          emit_move_insn (operands[2], mem);
        }
     }
@@ -9299,6 +9304,11 @@
       else
        {
          rtx mem = force_const_mem (SImode, operands[1]);
+         if (!general_operand (mem, SImode))
+           {
+             emit_move_insn (operands[3], XEXP (mem, 0));
+             mem = replace_equiv_address (mem, operands[3], false);
+           }
          emit_move_insn (operands[3], mem);
        }
     }
actually seems to work, and because before r11-3427 the code has done
emit_move_insn (operands[{2,3}], XEXP (force_const_mem (...), [0])); I think it
must work.

  parent reply	other threads:[~2021-02-11 11:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08  9:14 [Bug target/98998] New: ICE in change_address_1, at emit-rtl.c:2275 marxin at gcc dot gnu.org
2021-02-09 17:20 ` [Bug target/98998] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427 jakub at gcc dot gnu.org
2021-02-09 17:20 ` jakub at gcc dot gnu.org
2021-02-11 11:30 ` jakub at gcc dot gnu.org
2021-02-11 11:54 ` jakub at gcc dot gnu.org [this message]
2021-02-11 12:17 ` rsandifo at gcc dot gnu.org
2021-02-11 12:20 ` jakub at gcc dot gnu.org
2021-02-11 14:36 ` clyon at gcc dot gnu.org
2021-02-16 15:00 ` jakub at gcc dot gnu.org
2021-02-19 12:09 ` cvs-commit at gcc dot gnu.org
2021-02-19 12:10 ` 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-98998-4-O16K6VGMft@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).