This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Provide a hook for target to disable register renaming for some instructions
- From: Richard Henderson <rth at redhat dot com>
- To: Jie Zhang <jie at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Jun 2010 11:03:27 -0700
- Subject: Re: [PATCH] Provide a hook for target to disable register renaming for some instructions
- References: <4C2B84B7.2000506@codesourcery.com>
On 06/30/2010 10:53 AM, Jie Zhang wrote:
> When compiler an application for ARM, the GAS issued a warning:
>
> Warning: register range not in ascending order
>
> for the instruction
>
> push {ip, r3, r4, lr}
>
> Before regrename pass, this instruction looked like
>
> push {r0, r3, r4, lr}
Doesn't it work just as well to simply remove the register
constraint from the push_multi instruction? Without that
the regrename pass won't get a register class for the
operand and will leave it alone.
r~