This is the mail archive of the gcc-bugs@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]

Re: ARM code generation bug with -O2...


> Hi Richard,
> 
> : This is OK, but incomplete.  The tests should be the same as for post-inc 
> : ldr.  That is, that the base isn't being loaded/stored and that if the 
> : increment is a register, it isn't the same register as the base.  See the 
> : ldr peepholes in the same section for a template.
> 
> Ah, good point.  OK, here is an extend version of the patch.  This
> version adds the check you mentioned above, plus it also adds similar
> checks for the pre-inc peephole that follows after the post-inc
> peepholes.
> 
> OK to apply ?
> 
> Cheers
> 	Nick
> 
> 2000-07-03  Nick Clifton  <nickc@cygnus.com>
> 
> 	* config/arm/arm.md: Fix post increment and pre increment
> 	peepholes so that they do not generate UNPREDICATBLE opcodes.
> 	(ie ones where the increment clobbers the source/destination).

OK.

R.



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