public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-11069] SH: Fix PR 101177
@ 2023-10-20 10:05 Oleg Endo
0 siblings, 0 replies; only message in thread
From: Oleg Endo @ 2023-10-20 10:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e784ba28ae0214b02ae45734d5106ca421711a8a
commit r11-11069-ge784ba28ae0214b02ae45734d5106ca421711a8a
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 963984060e68..b647c33637ce 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:05 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:05 [gcc r11-11069] 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).