diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aea384e..556fb5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index ff28750..6c6fe61 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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; |