mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 01:50:33 +08:00
* config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
From-SVN: r81180
This commit is contained in:
parent
874e7baa4c
commit
778ebdd91d
@ -1,3 +1,7 @@
|
||||
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>
|
||||
|
||||
* fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
|
||||
|
@ -3089,17 +3089,15 @@ arm_legitimate_index_p (enum machine_mode mode, rtx index, RTX_CODE outer,
|
||||
HOST_WIDE_INT range;
|
||||
enum rtx_code code = GET_CODE (index);
|
||||
|
||||
if (TARGET_HARD_FLOAT && TARGET_FPA && GET_MODE_CLASS (mode) == MODE_FLOAT)
|
||||
/* Standard coprocessor addressing modes. */
|
||||
if (TARGET_HARD_FLOAT
|
||||
&& (TARGET_FPA || TARGET_MAVERICK)
|
||||
&& (GET_MODE_CLASS (mode) == MODE_FLOAT
|
||||
|| (TARGET_MAVERICK && mode == DImode)))
|
||||
return (code == CONST_INT && INTVAL (index) < 1024
|
||||
&& INTVAL (index) > -1024
|
||||
&& (INTVAL (index) & 3) == 0);
|
||||
|
||||
if (TARGET_HARD_FLOAT && TARGET_MAVERICK
|
||||
&& (GET_MODE_CLASS (mode) == MODE_FLOAT || mode == DImode))
|
||||
return (code == CONST_INT
|
||||
&& INTVAL (index) < 255
|
||||
&& INTVAL (index) > -255);
|
||||
|
||||
if (arm_address_register_rtx_p (index, strict_p)
|
||||
&& GET_MODE_SIZE (mode) <= 4)
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user