From: Oleg Endo Date: Fri, 20 Oct 2023 09:48:34 +0000 (+0900) Subject: SH: Fix PR 101177 X-Git-Tag: basepoints/gcc-15~5357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d0ca7ecd4f4dfef4145ad3a41fa0a72c8b19697;p=thirdparty%2Fgcc.git 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 --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