aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2014-01-21 20:49:17 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2014-01-21 20:49:17 +0000
commitca376eb8906f017e36271a101d95d42a4243bb2f (patch)
treec90077b2c7f2978373e87353c395c46a9119a28c /gcc
parent8f7082f5ea8da41cf909c6f06b036f01c4485b5a (diff)
downloadgcc-ca376eb8906f017e36271a101d95d42a4243bb2f.zip
gcc-ca376eb8906f017e36271a101d95d42a4243bb2f.tar.gz
gcc-ca376eb8906f017e36271a101d95d42a4243bb2f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c2
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;