(movqi): Use moveq if possible.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 31 Jan 1996 13:25:57 +0000 (08:25 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 31 Jan 1996 13:25:57 +0000 (08:25 -0500)
From-SVN: r11138

gcc/config/m68k/m68k.md

index d65d84d..84c197c 100644 (file)
          return \"st %0\";
        }
     }
+  if (GET_CODE (operands[1]) == CONST_INT
+      && DATA_REG_P (operands[0])
+      && INTVAL (operands[1]) < 128
+      && INTVAL (operands[1]) >= -128)
+    {
+#if defined(MOTOROLA) && !defined(CRDS)
+      return \"moveq%.l %1,%0\";
+#else
+      return \"moveq %1,%0\";
+#endif
+    }
   if (GET_CODE (operands[1]) != CONST_INT && CONSTANT_P (operands[1]))
     return \"move%.l %1,%0\";
   if (ADDRESS_REG_P (operands[0]) || ADDRESS_REG_P (operands[1]))