public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-11267] SH: Fix 101737
@ 2024-03-03 6:23 Oleg Endo
0 siblings, 0 replies; only message in thread
From: Oleg Endo @ 2024-03-03 6:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ec65cb598cc6fa126b458cf716438cc3f2404f3c
commit r11-11267-gec65cb598cc6fa126b458cf716438cc3f2404f3c
Author: Oleg Endo <olegendo@gcc.gnu.org>
Date: Sun Mar 3 14:58:58 2024 +0900
SH: Fix 101737
gcc/ChangeLog:
PR target/101737
* config/sh/sh.c (sh_is_nott_insn): Handle case where the input
is not an insn, but e.g. a code label.
Diff:
---
gcc/config/sh/sh.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 1564109c942..47aee75efe2 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -11760,7 +11760,8 @@ sh_insn_operands_modified_between_p (rtx_insn* operands_insn,
bool
sh_is_nott_insn (const rtx_insn* i)
{
- return i != NULL && GET_CODE (PATTERN (i)) == SET
+ return i != NULL_RTX && PATTERN (i) != NULL_RTX
+ && GET_CODE (PATTERN (i)) == SET
&& t_reg_operand (XEXP (PATTERN (i), 0), VOIDmode)
&& negt_reg_operand (XEXP (PATTERN (i), 1), VOIDmode);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-03 6:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-03 6:23 [gcc r11-11267] SH: Fix 101737 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).