* config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Nov 2013 18:10:36 +0000 (18:10 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Nov 2013 18:10:36 +0000 (18:10 +0000)
to 16 bits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204795 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rx/rx.c

index 76215c1..9530961 100644 (file)
@@ -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
index 756cd06..8986092 100644 (file)
@@ -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;