Commit e1471c91 by Richard Earnshaw Committed by Richard Earnshaw

arm.c (arm_legitimate_index_p): For QImode the range of an offset is -4095...+4095 inclusive.

* arm.c (arm_legitimate_index_p): For QImode the range of an offset
is -4095...+4095 inclusive.

From-SVN: r78429
parent 94b18ec1
2004-02-25 Richard Earnshaw <rearnsha@arm.com>
* arm.c (arm_legitimate_index_p): For QImode the range of an offset
is -4095...+4095 inclusive.
2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr> 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
* doc/install.texi (sparc-sun-solaris2* specific notes): Document * doc/install.texi (sparc-sun-solaris2* specific notes): Document
......
...@@ -2979,8 +2979,10 @@ arm_legitimate_index_p (enum machine_mode mode, rtx index, int strict_p) ...@@ -2979,8 +2979,10 @@ arm_legitimate_index_p (enum machine_mode mode, rtx index, int strict_p)
load, but that has a restricted addressing range and we are unable load, but that has a restricted addressing range and we are unable
to tell here whether that is the case. To be safe we restrict all to tell here whether that is the case. To be safe we restrict all
loads to that range. */ loads to that range. */
range = ((mode) == HImode || (mode) == QImode) if (arm_arch4)
? (arm_arch4 ? 256 : 4095) : 4096; range = (mode == HImode || mode == QImode) ? 256 : 4096;
else
range = (mode == HImode) ? 4095 : 4096;
return (code == CONST_INT return (code == CONST_INT
&& INTVAL (index) < range && INTVAL (index) < range
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment