From: Richard Kenner Date: Wed, 31 Jan 1996 13:25:57 +0000 (-0500) Subject: (movqi): Use moveq if possible. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c758d821a49e53d1c4030adf5c780af2d18bf20;p=gcc.git (movqi): Use moveq if possible. From-SVN: r11138 --- diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index d65d84dd2bf..84c197cbff4 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -1071,6 +1071,17 @@ 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]))