mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
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:
parent
12ab965552
commit
66dfe13f30
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user