diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-01-21 20:49:17 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-01-21 20:49:17 +0000 |
commit | ca376eb8906f017e36271a101d95d42a4243bb2f (patch) | |
tree | c90077b2c7f2978373e87353c395c46a9119a28c /gcc/config | |
parent | 8f7082f5ea8da41cf909c6f06b036f01c4485b5a (diff) | |
download | gcc-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/config')
-rw-r--r-- | gcc/config/mips/mips.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |