]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 21 Jan 2014 20:49:17 +0000 (20:49 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 21 Jan 2014 20:49:17 +0000 (20:49 +0000)
gcc/
* config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
(mips_move_from_gpr_cost): Likewise.

From-SVN: r206907

gcc/ChangeLog
gcc/config/mips/mips.c

index aea384ee69d936ffc4da0c6238115a83414c553c..556fb5eb12551278903aeda04fd616cc5c532ade 100644 (file)
@@ -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
index ff28750d5e4f2cb9d084f5a1575991b710ace753..6c6fe61be398e115ccc6c6d010eb31dc519aa439 100644 (file)
@@ -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;