OSDN Git Service

* sh.c (sh_register_move_cost): Add clase for moving between
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2003 15:48:03 +0000 (15:48 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2003 15:48:03 +0000 (15:48 +0000)
FP registers and MAC registers.

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

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

index fb77616..b4b1065 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * sh.c (sh_register_move_cost): Add clase for moving between
+       FP registers and MAC registers.
+
 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
 
        * pa/milli64.S ($$mulI): Fix typo.
index 45c7769..90bee49 100644 (file)
@@ -8243,6 +8243,10 @@ sh_register_move_cost (mode, srcclass, dstclass)
       && REGCLASS_HAS_FP_REG (dstclass))
     return 4;
 
+  if ((REGCLASS_HAS_FP_REG (dstclass) && srcclass == MAC_REGS)
+      || (dstclass== MAC_REGS && REGCLASS_HAS_FP_REG (srcclass)))
+    return 9;
+
   if ((REGCLASS_HAS_FP_REG (dstclass)
        && REGCLASS_HAS_GENERAL_REG (srcclass))
       || (REGCLASS_HAS_GENERAL_REG (dstclass)