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: Fix Thumb-2 casesi bug


On Thursday 20 November 2008, Joseph S. Myers wrote:
> thumb2_output_casesi generates instruction sequences that write to
> scratch operand 4 before the inputs have been read, and so the
> associated insn patterns need an earlyclobber to prevent this
> overwriting the inputs.  This patch adds that earlyclobber.  Tested
> with no regressions with cross to arm-none-linux-gnueabi (configured
> for Thumb-2); OK to commit?

> 	* config/arm/thumb2.md (thumb2_casesi_internal,
> 	thumb2_casesi_internal_pic): Use earlyclobber for scratch operand
> 	4.

Ok.

Paul


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