aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-04-13 15:04:36 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-04-13 15:04:36 -0400
commit5716e6452827c805240fbede43b6f82a4f6a914f (patch)
tree6a8f3fce6fead0b876b7fc9e22ad289b45f1cf73
parent67cbb7a7d42f9cf8ba9eec79d2f057bc4b60a38f (diff)
downloadgcc-5716e6452827c805240fbede43b6f82a4f6a914f.zip
gcc-5716e6452827c805240fbede43b6f82a4f6a914f.tar.gz
gcc-5716e6452827c805240fbede43b6f82a4f6a914f.tar.bz2
(movstricthi): Remove extraneous comparisons.
From-SVN: r13890
-rw-r--r--gcc/config/m68k/m68k.md18
1 files changed, 6 insertions, 12 deletions
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index 95b77dc..fdb6eb2 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\";
}")