(fullword move): Call output_move_const_into_data_reg.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 14 Jan 1995 01:29:19 +0000 (20:29 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 14 Jan 1995 01:29:19 +0000 (20:29 -0500)
From-SVN: r8752

gcc/config/m68k/m68k.md

index 761bb4f7023126c1b54e98d01b60f32043bda7d5..8f343295b73e80cfe62b5fb4911ccb51761e7853 100644 (file)
@@ -1,5 +1,5 @@
 ;;- Machine description for GNU compiler, Motorola 68000 Version
-;;  Copyright (C) 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
+;;  Copyright (C) 1987, 1988, 1993, 1994, 1995 Free Software Foundation, Inc.
 
 ;; This file is part of GNU CC.
 
              || !(GET_CODE (operands[0]) == MEM
                   && MEM_VOLATILE_P (operands[0]))))
        return \"clr%.l %0\";
-      else if (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
-       }
-      else if (DATA_REG_P (operands[0])
-               /* if -256 < N < 256 but N is not in range for a moveq
-                  N^ff will be, so use moveq #N^ff, dreg; not.b dreg.  */
-              && INTVAL (operands[1]) < 256
-              && INTVAL (operands[1]) >= -256)
-        {
-         operands[1] = gen_rtx (CONST_INT, VOIDmode, INTVAL (operands[1]) ^ 0xff);
-#if defined(MOTOROLA) && !defined(CRDS)
-          return \"moveq%.l %1,%0\;not%.b %0\";
-#else
-         return \"moveq %1,%0\;not%.b %0\";
-#endif  
-       }
+      else if (DATA_REG_P (operands[0]))
+       return output_move_const_into_data_reg (operands);
       else if (ADDRESS_REG_P (operands[0])
               && INTVAL (operands[1]) < 0x8000
               && INTVAL (operands[1]) >= -0x8000)