public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/102057] [12 Regression] ICE at -O2 in extract_constrain_insn, at recog.c:2670
Date: Wed, 25 Aug 2021 09:45:37 +0000	[thread overview]
Message-ID: <bug-102057-4-pTMU5mjZRy@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-102057-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
Oooh, default argument!

--cut here--
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 41d85623ad6..528116dfe2d 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -19475,8 +19472,8 @@
                                          (match_dup 0)))]
 {
   operands[7] = SET_DEST (XVECEXP (PATTERN (peep2_next_insn (1)), 0, 0));
-  operands[8] = replace_rtx (operands[5], operands[0], operands[1]);
-  operands[9] = replace_rtx (operands[6], operands[0], operands[1]);
+  operands[8] = replace_rtx (operands[5], operands[0], operands[1], true);
+  operands[9] = replace_rtx (operands[6], operands[0], operands[1], true);
 })

 ;; Eliminate a reg-reg mov by inverting the condition of a cmov (#2).
@@ -19507,8 +19504,8 @@
                                          (match_dup 0)))]
 {
   operands[7] = SET_DEST (XVECEXP (PATTERN (peep2_next_insn (2)), 0, 0));
-  operands[8] = replace_rtx (operands[5], operands[0], operands[1]);
-  operands[9] = replace_rtx (operands[6], operands[0], operands[1]);
+  operands[8] = replace_rtx (operands[5], operands[0], operands[1], true);
+  operands[9] = replace_rtx (operands[6], operands[0], operands[1], true);
 })

 (define_expand "mov<mode>cc"
--cut here--

  parent reply	other threads:[~2021-08-25  9:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25  8:29 [Bug target/102057] New: " haoxintu at gmail dot com
2021-08-25  8:57 ` [Bug target/102057] " ubizjak at gmail dot com
2021-08-25  9:03 ` [Bug target/102057] [12 Regression] " pinskia at gcc dot gnu.org
2021-08-25  9:14 ` ubizjak at gmail dot com
2021-08-25  9:45 ` ubizjak at gmail dot com [this message]
2021-08-26 15:27 ` cvs-commit at gcc dot gnu.org
2021-08-26 15:30 ` ubizjak at gmail dot com

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-102057-4-pTMU5mjZRy@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).