sh.c (sh_register_move_cost): Add case for moving from T_REGS to FP register class.
* config/sh/sh.c (sh_register_move_cost): Add case for moving from T_REGS to FP register class. From-SVN: r104916
This commit is contained in:
parent
3715008050
commit
9c24200c8d
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||
|
||||
* config/sh/sh.c (sh_register_move_cost): Add case for moving
|
||||
from T_REGS to FP register class.
|
||||
|
||||
2005-10-03 Richard Henderson <rth@redhat.com>
|
||||
|
||||
PR 24135
|
||||
|
|
|
@ -9491,6 +9491,9 @@ sh_register_move_cost (enum machine_mode mode,
|
|||
&& REGCLASS_HAS_FP_REG (dstclass))
|
||||
return 4;
|
||||
|
||||
if (REGCLASS_HAS_FP_REG (dstclass) && srcclass == T_REGS)
|
||||
return ((TARGET_HARD_SH4 && !optimize_size) ? 10 : 7);
|
||||
|
||||
if ((REGCLASS_HAS_FP_REG (dstclass) && srcclass == MAC_REGS)
|
||||
|| (dstclass == MAC_REGS && REGCLASS_HAS_FP_REG (srcclass)))
|
||||
return 9;
|
||||
|
|
Loading…
Add table
Reference in a new issue