aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>1999-10-20 15:36:33 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-10-20 15:36:33 +0000
commit7086004dd08377c126319232e36f037959acbf2c (patch)
tree510287881be3567c5ed7071d782e0b46af40f0c5 /gcc
parent49c3bb1275fbdde639e778beb5aa5f4c6361a52d (diff)
downloadgcc-7086004dd08377c126319232e36f037959acbf2c.zip
gcc-7086004dd08377c126319232e36f037959acbf2c.tar.gz
gcc-7086004dd08377c126319232e36f037959acbf2c.tar.bz2
thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of the mode size when finding out if an offset is legal.
Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com> * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of the mode size when finding out if an offset is legal. From-SVN: r30104
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/thumb.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 18d7629..fdbde3f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
+
+ * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
+ the mode size when finding out if an offset is legal.
+
Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
* basic-block.h (PROP_*): Move constants from ...
diff --git a/gcc/config/arm/thumb.h b/gcc/config/arm/thumb.h
index 9c30a30..baefb83 100644
--- a/gcc/config/arm/thumb.h
+++ b/gcc/config/arm/thumb.h
@@ -1007,7 +1007,8 @@ extern int making_const_table;
&& REGNO (XEXP (X, 0)) == STACK_POINTER_REGNUM \
&& GET_MODE_SIZE (MODE) >= 4 \
&& GET_CODE (XEXP (X, 1)) == CONST_INT \
- && (unsigned HOST_WIDE_INT) INTVAL (XEXP (X, 1)) < 1024 \
+ && ((unsigned HOST_WIDE_INT) INTVAL (XEXP (X, 1)) \
+ + GET_MODE_SIZE (MODE)) <= 1024 \
&& (INTVAL (XEXP (X, 1)) & 3) == 0) \
goto WIN; \
} \