From: mpf Date: Wed, 10 Sep 2014 10:52:39 +0000 (+0000) Subject: MIPS: Do not reload unallocated FP_REGS pseudos via GR_REGS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66ced0bc763c7c9fad93fba1455b69ca8e7975d7;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f9d1cf5492f..154b9daa0a06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-10 Matthew Fortune + + * config/mips/mips.c (mips_secondary_reload_class): Handle + regno < 0 case. + 2014-09-10 Robert Suchanek * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 646bb4dc7ebd..d1d4defd8e51 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;