From 5716e6452827c805240fbede43b6f82a4f6a914f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 13 Apr 1997 15:04:36 -0400 Subject: [PATCH] (movstricthi): Remove extraneous comparisons. From-SVN: r13890 --- gcc/config/m68k/m68k.md | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 95b77dcc7c7..fdb6eb2de73 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -964,18 +964,12 @@ "" "* { - if (GET_CODE (operands[1]) == CONST_INT) - { - if (operands[1] == const0_rtx - && (DATA_REG_P (operands[0]) - || GET_CODE (operands[0]) == MEM) - /* clr insns on 68000 read before writing. - This isn't so on the 68010, but we have no TARGET_68010. */ - && ((TARGET_68020 || TARGET_5200) - || !(GET_CODE (operands[0]) == MEM - && MEM_VOLATILE_P (operands[0])))) - return \"clr%.w %0\"; - } + if (operands[1] == const0_rtx + /* clr insns on 68000 read before writing. + This isn't so on the 68010, but we have no TARGET_68010. */ + && ((TARGET_68020 || TARGET_5200) + || !(GET_CODE (operands[0]) == MEM && MEM_VOLATILE_P (operands[0])))) + return \"clr%.w %0\"; return \"move%.w %1,%0\"; }") -- 2.30.2