rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow SP_REG.

* config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
	SP_REG.

From-SVN: r195530
This commit is contained in:
Nick Clifton 2013-01-29 09:00:35 +00:00 committed by Nick Clifton
parent 12ab965552
commit 66dfe13f30
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-01-29 Nick Clifton <nickc@redhat.com>
* config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
SP_REG.
2013-01-28 Leif Ekblad <leif@rdos.net>
* config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.

View File

@ -769,7 +769,7 @@ rl78_regno_mode_code_ok_for_base_p (int regno, enum machine_mode mode ATTRIBUTE_
addr_space_t address_space ATTRIBUTE_UNUSED,
int outer_code ATTRIBUTE_UNUSED, int index_code)
{
if (regno < 24 && regno >= 16)
if (regno <= SP_REG && regno >= 16)
return true;
if (index_code == REG)
return (regno == HL_REG);