public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Oleg Endo <olegendo@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-4782] SH: Fix PR 101177 Date: Fri, 20 Oct 2023 09:51:37 +0000 (GMT) [thread overview] Message-ID: <20231020095137.D99C83858D39@sourceware.org> (raw) https://gcc.gnu.org/g:1d0ca7ecd4f4dfef4145ad3a41fa0a72c8b19697 commit r14-4782-g1d0ca7ecd4f4dfef4145ad3a41fa0a72c8b19697 Author: Oleg Endo <olegendo@gcc.gnu.org> Date: Fri Oct 20 18:48:34 2023 +0900 SH: Fix PR 101177 Fix accidentally inverted comparison. gcc/ChangeLog: PR target/101177 * config/sh/sh.md (unnamed split pattern): Fix comparison of find_regno_note result. Diff: --- gcc/config/sh/sh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 484a34fe4438..193f40d44195 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -842,7 +842,7 @@ if (SUBREG_P (reg)) reg = SUBREG_REG (reg); gcc_assert (REG_P (reg)); - if (find_regno_note (curr_insn, REG_DEAD, REGNO (reg)) != NULL_RTX) + if (find_regno_note (curr_insn, REG_DEAD, REGNO (reg)) == NULL_RTX) FAIL; /* FIXME: Maybe also search the predecessor basic blocks to catch
reply other threads:[~2023-10-20 9:51 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20231020095137.D99C83858D39@sourceware.org \ --to=olegendo@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).