Commit ca376eb8 by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_move_to_gpr_cost): Add M16_REGS case.

gcc/
	* config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
	(mips_move_from_gpr_cost): Likewise.

From-SVN: r206907
parent 8f7082f5
2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
(mips_move_from_gpr_cost): Likewise.
2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/59858
......
......@@ -11883,6 +11883,7 @@ mips_move_to_gpr_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
{
switch (from)
{
case M16_REGS:
case GENERAL_REGS:
/* A MIPS16 MOVE instruction, or a non-MIPS16 MOVE macro. */
return 2;
......@@ -11919,6 +11920,7 @@ mips_move_from_gpr_cost (enum machine_mode mode, reg_class_t to)
{
switch (to)
{
case M16_REGS:
case GENERAL_REGS:
/* A MIPS16 MOVE instruction, or a non-MIPS16 MOVE macro. */
return 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment