aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2013-11-14 18:10:36 +0000
committerDJ Delorie <dj@redhat.com>2013-11-14 18:10:36 +0000
commitad3927846271f56ac1a851617e465d80f1b5040c (patch)
tree1d60d5acb90a35de31105618951154b707cc0c80 /gcc
parent95b760d4c745b76232a45417c3b765110b119961 (diff)
* config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
to 16 bits. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@204795 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rx/rx.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 76215c10622..9530961ff21 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-14 DJ Delorie <dj@redhat.com>
+
+ * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
+ to 16 bits.
+
2013-11-14 Jeff Law <law@redhat.com>
* tree-ssa-threadedge.c (thread_through_normal_block): Only push
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c
index 756cd061614..89860927a82 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;