diff options
| author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-26 13:56:00 +0000 |
|---|---|---|
| committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-26 13:56:00 +0000 |
| commit | 7d647a201f5504ad8eb2ea7bbd4b68722e9798fa (patch) | |
| tree | 7954d3420d5fcfcdf6ce9e7e98771201e06aa92c | |
| parent | 350f1a6f3375581ec58fb2ca462b0ec2f436250c (diff) | |
| download | ppe42-gcc-7d647a201f5504ad8eb2ea7bbd4b68722e9798fa.tar.gz ppe42-gcc-7d647a201f5504ad8eb2ea7bbd4b68722e9798fa.zip | |
* config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81189 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/arm/arm.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 454d85b00a9..24b6342c10c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 05916435534..e49692c3b8f 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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 |

