OSDN Git Service

* config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2004 13:56:00 +0000 (13:56 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2004 13:56:00 +0000 (13:56 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81189 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index 454d85b..24b6342 100644 (file)
@@ -1,5 +1,9 @@
 2004-04-26  Paul Brook  <paul@codesourcery.com>
 
+       * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
+
+2004-04-26  Paul Brook  <paul@codesourcery.com>
+
        * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
 
 2004-04-25  Roger Sayle  <roger@eyesopen.com>
index 0591643..e49692c 100644 (file)
@@ -3104,8 +3104,9 @@ arm_legitimate_index_p (enum machine_mode mode, rtx index, RTX_CODE outer,
 
   if (TARGET_REALLY_IWMMXT && VALID_IWMMXT_REG_MODE (mode))
     return (code == CONST_INT
-           && INTVAL (index) < 256
-           && INTVAL (index) > -256);
+           && INTVAL (index) < 1024
+           && INTVAL (index) > -1024
+           && (INTVAL (index) & 3) == 0);
 
   if (GET_MODE_SIZE (mode) <= 4
       && ! (arm_arch4