OSDN Git Service

2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jun 2003 17:33:35 +0000 (17:33 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jun 2003 17:33:35 +0000 (17:33 +0000)
* config/sh/sh.c (sh_register_move_cost):
Add case for moving between MAC_REGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68484 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.c

index 96b0efd..aaee496 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-25     Dhananjay Deshpande <dhananjayd@kpitcummins.com>
+
+       * config/sh/sh.c (sh_register_move_cost):
+       Add case for moving between MAC_REGS.
+
 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
 
        PR 10178
index aab3c39..dcd97d7 100644 (file)
@@ -8453,6 +8453,9 @@ sh_register_move_cost (mode, srcclass, dstclass)
   if (dstclass == T_REGS || dstclass == PR_REGS)
     return 10;
 
+  if (dstclass == MAC_REGS && srcclass == MAC_REGS)
+    return 4;
+
   if (mode == SImode && ! TARGET_SHMEDIA && TARGET_FMOVD
       && REGCLASS_HAS_FP_REG (srcclass)
       && REGCLASS_HAS_FP_REG (dstclass))