aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rx
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2013-11-14 13:10:36 -0500
committerDJ Delorie <dj@gcc.gnu.org>2013-11-14 13:10:36 -0500
commiteb1c879cfdbbac4ea72279f39e550d178cf74f9b (patch)
tree1d60d5acb90a35de31105618951154b707cc0c80 /gcc/config/rx
parent9572918137e0b374c71c69c0c38b2adfacfbda1f (diff)
downloadgcc-eb1c879cfdbbac4ea72279f39e550d178cf74f9b.zip
gcc-eb1c879cfdbbac4ea72279f39e550d178cf74f9b.tar.gz
gcc-eb1c879cfdbbac4ea72279f39e550d178cf74f9b.tar.bz2
rx.c (rx_mode_dependent_address_p): Allow offsets up to 16 bits.
* config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up to 16 bits. From-SVN: r204795
Diffstat (limited to 'gcc/config/rx')
-rw-r--r--gcc/config/rx/rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c
index 756cd06..8986092 100644
--- a/gcc/config/rx/rx.c
+++ b/gcc/config/rx/rx.c
@@ -344,9 +344,9 @@ rx_mode_dependent_address_p (const_rtx addr, addr_space_t as ATTRIBUTE_UNUSED)
case CONST_INT:
/* REG+INT is only mode independent if INT is a
- multiple of 4, positive and will fit into 8-bits. */
+ multiple of 4, positive and will fit into 16-bits. */
if (((INTVAL (addr) & 3) == 0)
- && IN_RANGE (INTVAL (addr), 4, 252))
+ && IN_RANGE (INTVAL (addr), 4, 0xfffc))
return false;
return true;