(movstricthi): Remove extraneous comparisons.

From-SVN: r13890
This commit is contained in:
Richard Kenner 1997-04-13 15:04:36 -04:00
parent 67cbb7a7d4
commit 5716e64528

View File

@ -964,18 +964,12 @@
"" ""
"* "*
{ {
if (GET_CODE (operands[1]) == CONST_INT) if (operands[1] == const0_rtx
{ /* clr insns on 68000 read before writing.
if (operands[1] == const0_rtx This isn't so on the 68010, but we have no TARGET_68010. */
&& (DATA_REG_P (operands[0]) && ((TARGET_68020 || TARGET_5200)
|| GET_CODE (operands[0]) == MEM) || !(GET_CODE (operands[0]) == MEM && MEM_VOLATILE_P (operands[0]))))
/* clr insns on 68000 read before writing. return \"clr%.w %0\";
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\"; return \"move%.w %1,%0\";
}") }")