From: liuhongt Date: Wed, 22 Jun 2022 06:08:42 +0000 (+0800) Subject: Replace REGNO with reg_or_subregno in pre_reload splitter. X-Git-Tag: basepoints/gcc-14~5995 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f52df186de41284b9976ea461381e168da5749f;p=thirdparty%2Fgcc.git Replace REGNO with reg_or_subregno in pre_reload splitter. gcc/ChangeLog: * config/i386/sse.md:(sse4_2_pcmpestr): Replace REGNO with reg_or_subregno. (sse4_2_pcmpistr): Ditto. --- diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 64ac490d272..8cd0f617bf3 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -23250,8 +23250,10 @@ "&& 1" [(const_int 0)] { - int ecx = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[0])); - int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[1])); + int ecx = !find_regno_note (curr_insn, REG_UNUSED, + reg_or_subregno (operands[0])); + int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, + reg_or_subregno (operands[1])); int flags = !find_regno_note (curr_insn, REG_UNUSED, FLAGS_REG); if (ecx) @@ -23386,8 +23388,10 @@ "&& 1" [(const_int 0)] { - int ecx = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[0])); - int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[1])); + int ecx = !find_regno_note (curr_insn, REG_UNUSED, + reg_or_subregno (operands[0])); + int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, + reg_or_subregno (operands[1])); int flags = !find_regno_note (curr_insn, REG_UNUSED, FLAGS_REG); if (ecx)