reload.c (find_valid_class): Allow classes that do not include FIRST_PSEUDO_REGISTER - 1.

* reload.c (find_valid_class): Allow classes that do not include
	FIRST_PSEUDO_REGISTER - 1.

From-SVN: r202000
This commit is contained in:
Joern Rennecke 2013-08-26 15:32:55 +00:00 committed by Joern Rennecke
parent a21e735ed5
commit befe864770
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
* reload.c (find_valid_class): Allow classes that do not include
FIRST_PSEUDO_REGISTER - 1.
2013-08-26 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;

View File

@ -680,8 +680,8 @@ find_valid_class (enum machine_mode outer ATTRIBUTE_UNUSED,
if (HARD_REGNO_MODE_OK (regno, inner))
{
good = 1;
if (! TEST_HARD_REG_BIT (reg_class_contents[rclass], regno + n)
|| ! HARD_REGNO_MODE_OK (regno + n, outer))
if (TEST_HARD_REG_BIT (reg_class_contents[rclass], regno + n)
&& ! HARD_REGNO_MODE_OK (regno + n, outer))
bad = 1;
}
}