]> gcc.gnu.org Git - gcc.git/commitdiff
m68k.c (output_move_const_into_data_reg, [...]): unify MOTOROLA/MIT handling of moveq
authorGunther Nikl <gni@gecko.de>
Wed, 20 Aug 2003 22:10:42 +0000 (22:10 +0000)
committerBernardo Innocenti <bernie@gcc.gnu.org>
Wed, 20 Aug 2003 22:10:42 +0000 (00:10 +0200)
* config/m68k/m68k.c (output_move_const_into_data_reg,
output_move_himode): unify MOTOROLA/MIT handling of moveq
* config/m68k/m68k.md (movsi_const0, anonymous define_insn):
Likewise

From-SVN: r70621

gcc/ChangeLog
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.md

index 244163c935b332b63e9f8d3a9eef8ce017d406c6..0438374b5a3ccfc1cb4ab5349df68d8e596a937d 100644 (file)
@@ -1,3 +1,10 @@
+2003-08-20  Gunther Nikl  <gni@gecko.de>
+
+       * config/m68k/m68k.c (output_move_const_into_data_reg,
+       output_move_himode): unify MOTOROLA/MIT handling of moveq
+       * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
+       Likewise
+
 2003-08-20  Gunther Nikl  <gni@gecko.de>
 
        * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
 2003-08-20  Gunther Nikl  <gni@gecko.de>
 
        * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
index cd8a2b7a2dc7fb47c566e0278b64aba60d337614..79f375274532e165ad7213e7d12cff6491cde7c4 100644 (file)
@@ -1604,41 +1604,21 @@ output_move_const_into_data_reg (operands)
   switch (const_method (operands[1]))
     {
     case MOVQ :
   switch (const_method (operands[1]))
     {
     case MOVQ :
-#if defined (MOTOROLA)
-      return "moveq%.l %1,%0";
-#else
       return "moveq %1,%0";
       return "moveq %1,%0";
-#endif
     case NOTB :
       operands[1] = GEN_INT (i ^ 0xff);
     case NOTB :
       operands[1] = GEN_INT (i ^ 0xff);
-#if defined (MOTOROLA)
-      return "moveq%.l %1,%0\n\tnot%.b %0";
-#else
       return "moveq %1,%0\n\tnot%.b %0";
       return "moveq %1,%0\n\tnot%.b %0";
-#endif  
     case NOTW :
       operands[1] = GEN_INT (i ^ 0xffff);
     case NOTW :
       operands[1] = GEN_INT (i ^ 0xffff);
-#if defined (MOTOROLA)
-      return "moveq%.l %1,%0\n\tnot%.w %0";
-#else
       return "moveq %1,%0\n\tnot%.w %0";
       return "moveq %1,%0\n\tnot%.w %0";
-#endif  
     case NEGW :
     case NEGW :
-#if defined (MOTOROLA)
-      return "moveq%.l %#-128,%0\n\tneg%.w %0";
-#else
       return "moveq %#-128,%0\n\tneg%.w %0";
       return "moveq %#-128,%0\n\tneg%.w %0";
-#endif  
     case SWAP :
       {
        unsigned u = i;
 
        operands[1] = GEN_INT ((u << 16) | (u >> 16));
     case SWAP :
       {
        unsigned u = i;
 
        operands[1] = GEN_INT ((u << 16) | (u >> 16));
-#if defined (MOTOROLA)
-       return "moveq%.l %1,%0\n\tswap %0";
-#else
        return "moveq %1,%0\n\tswap %0";
        return "moveq %1,%0\n\tswap %0";
-#endif  
       }
     case MOVL :
        return "move%.l %1,%0";
       }
     case MOVL :
        return "move%.l %1,%0";
@@ -1717,11 +1697,7 @@ output_move_himode (operands)
               && INTVAL (operands[1]) < 128
               && INTVAL (operands[1]) >= -128)
        {
               && INTVAL (operands[1]) < 128
               && INTVAL (operands[1]) >= -128)
        {
-#if defined(MOTOROLA)
-         return "moveq%.l %1,%0";
-#else
          return "moveq %1,%0";
          return "moveq %1,%0";
-#endif
        }
       else if (INTVAL (operands[1]) < 0x8000
               && INTVAL (operands[1]) >= -0x8000)
        }
       else if (INTVAL (operands[1]) < 0x8000
               && INTVAL (operands[1]) >= -0x8000)
@@ -1821,11 +1797,7 @@ output_move_qimode (operands)
       && INTVAL (operands[1]) < 128
       && INTVAL (operands[1]) >= -128)
     {
       && INTVAL (operands[1]) < 128
       && INTVAL (operands[1]) >= -128)
     {
-#if defined(MOTOROLA)
-      return "moveq%.l %1,%0";
-#else
       return "moveq %1,%0";
       return "moveq %1,%0";
-#endif
     }
   if (operands[1] == const0_rtx && ADDRESS_REG_P (operands[0]))
     return "sub%.l %0,%0";
     }
   if (operands[1] == const0_rtx && ADDRESS_REG_P (operands[0]))
     return "sub%.l %0,%0";
index ff56d39a96785d82ae175f632b3d042d47bce88d..bc22ec1d0b0fc8502615e8472b9f33014a6ec0c9 100644 (file)
     }
   /* moveq is faster on the 68000.  */
   if (DATA_REG_P (operands[0]) && (!TARGET_68020 && !TARGET_5200))
     }
   /* moveq is faster on the 68000.  */
   if (DATA_REG_P (operands[0]) && (!TARGET_68020 && !TARGET_5200))
-#if defined(MOTOROLA)
-    return \"moveq%.l %#0,%0\";
-#else
     return \"moveq %#0,%0\";
     return \"moveq %#0,%0\";
-#endif
   return \"clr%.l %0\";
 }")
 
   return \"clr%.l %0\";
 }")
 
       /* moveq is faster on the 68000.  */
       if (DATA_REG_P (operands[0]) && !(TARGET_68020 || TARGET_5200))
        {
       /* moveq is faster on the 68000.  */
       if (DATA_REG_P (operands[0]) && !(TARGET_68020 || TARGET_5200))
        {
-#if defined(MOTOROLA)
-         return \"moveq%.l %#0,%0\";
-#else
          return \"moveq %#0,%0\";
          return \"moveq %#0,%0\";
-#endif
        }
       return \"clr%.l %0\";
     }
        }
       return \"clr%.l %0\";
     }
This page took 0.080178 seconds and 5 git commands to generate.