This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Provide a hook for target to disable register renaming for some instructions


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]