aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authormpf <mpf@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-10 10:52:39 +0000
committermpf <mpf@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-10 10:52:39 +0000
commit66ced0bc763c7c9fad93fba1455b69ca8e7975d7 (patch)
tree13399392523c390b5135c5645dec71c41ecd3b61 /gcc/config/mips
parent37aa16f1a5431582dec57ed22dee04def53cf782 (diff)
MIPS: Do not reload unallocated FP_REGS pseudos via GR_REGS
gcc/ * config/mips/mips.c (mips_secondary_reload_class): Handle regno < 0 case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215120 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 646bb4dc7eb..d1d4defd8e5 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -12143,8 +12143,9 @@ mips_secondary_reload_class (enum reg_class rclass,
if (reg_class_subset_p (rclass, FP_REGS))
{
- if (MEM_P (x)
- && (GET_MODE_SIZE (mode) == 4 || GET_MODE_SIZE (mode) == 8))
+ if (regno < 0
+ || (MEM_P (x)
+ && (GET_MODE_SIZE (mode) == 4 || GET_MODE_SIZE (mode) == 8)))
/* In this case we can use lwc1, swc1, ldc1 or sdc1. We'll use
pairs of lwc1s and swc1s if ldc1 and sdc1 are not supported. */
return NO_REGS;