From: Oleg Endo Date: Fri, 20 Oct 2023 09:48:34 +0000 (+0900) Subject: SH: Fix PR 101177 X-Git-Tag: releases/gcc-12.4.0~634 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21ce4f97b2c158778fbf96858e7e589ad648b3c8;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 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