arm.c (thumb_base_register_rtx_p): Use regno in comparison against FIRST_PSEUDO_REGISTER.

* arm.c (thumb_base_register_rtx_p): Use regno in comparison against
FIRST_PSEUDO_REGISTER.

From-SVN: r74829
This commit is contained in:
Richard Earnshaw 2003-12-19 09:59:32 +00:00 committed by Richard Earnshaw
parent f1af10c25d
commit edf7cee87b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-12-19 Richard Earnshaw <rearnsha@arm.com>
* arm.c (thumb_base_register_rtx_p): Use regno in comparison against
FIRST_PSEUDO_REGISTER.
2003-12-18 Hartmut Penner <hpenner@de.ibm.com>
* gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check

View File

@ -2868,7 +2868,7 @@ arm_legitimate_index_p (enum machine_mode mode, rtx index, int strict_p)
&& INTVAL (index) > -range);
}
/* Return nonzero if X is valid as an Thumb state base register. */
/* Return nonzero if X is valid as a Thumb state base register. */
static int
thumb_base_register_rtx_p (rtx x, enum machine_mode mode, int strict_p)
{
@ -2887,7 +2887,7 @@ thumb_base_register_rtx_p (rtx x, enum machine_mode mode, int strict_p)
|| regno == FRAME_POINTER_REGNUM
|| (GET_MODE_SIZE (mode) >= 4
&& (regno == STACK_POINTER_REGNUM
|| x >= FIRST_PSEUDO_REGISTER
|| regno >= FIRST_PSEUDO_REGISTER
|| x == hard_frame_pointer_rtx
|| x == arg_pointer_rtx)));
}