From a60a9553a1193112da334f4acb4b705c3f4745a5 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Tue, 20 May 2003 15:48:03 +0000 Subject: [PATCH] sh.c (sh_register_move_cost): Add clase for moving between FP registers and MAC registers. * sh.c (sh_register_move_cost): Add clase for moving between FP registers and MAC registers. From-SVN: r67028 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb77616de12..b4b106510f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-05-20 J"orn Rennecke + + * sh.c (sh_register_move_cost): Add clase for moving between + FP registers and MAC registers. + 2003-05-19 John David Anglin * pa/milli64.S ($$mulI): Fix typo. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 45c7769215b..90bee49dec0 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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) -- 2.30.2