public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-9932] SH: Fix PR 101177
@ 2023-10-20 10:01 Oleg Endo
  0 siblings, 0 replies; only message in thread
From: Oleg Endo @ 2023-10-20 10:01 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:21ce4f97b2c158778fbf96858e7e589ad648b3c8

commit r12-9932-g21ce4f97b2c158778fbf96858e7e589ad648b3c8
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 15cdfe9ac339..e11e8a5a40df 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-20 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 10:01 [gcc r12-9932] SH: Fix PR 101177 Oleg Endo

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).