Commit 99a5c6b0 by Matthew Fortune Committed by Matthew Fortune

MIPS: Do not reload unallocated FP_REGS pseudos via GR_REGS

gcc/

	* config/mips/mips.c (mips_secondary_reload_class): Handle
	regno < 0 case.

From-SVN: r215120
parent 5625bd33
2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
* config/mips/mips.c (mips_secondary_reload_class): Handle
regno < 0 case.
2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
* lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment