This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: arm_hard_regno_mode_ok update
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Thu, 24 Jan 2002 16:36:10 +0000
- Subject: Re: arm_hard_regno_mode_ok update
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
Nick,
I don't think this code can't be right in general. I really think a user
needs to be able to name *any* reserved register in an ASM type statement.
Why is the check in there in the first place? We didn't need it before...
if (regno <= LAST_ARM_REGNUM)
/* If the register is a general purpose ARM register we allow
it only if it not a special register (SP, LR, PC) and only
if there will be enough (non-special) registers to hold the
entire value. */
return regno < (SP_REGNUM - (unsigned) NUM_REGS (mode));
Why can't the user use LR (r14)? Other than on a call boundary, that is
just a general purpose register.
R.