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: patterns for HImode with predec/preinc on ARM


On Thu, 2004-11-11 at 21:23, Nicolas Pitre wrote:
> This patch adds HImode with predec/preinc and writeback addressing for 
> ARM.  This is particularly useful to have with some audio processing 
> algorithms for example.  Currently there are patterns for SImode and 
> QImode but HImode were missing.  Asking permission to commit.
> 
> [date]  Nicolas Pitre <nico@cam.org>
> 
> 	* config/arm/arm.md (strhi_preinc, strhi_predec, loadhi_preinc,
> 	loadhi_predec, loadhisi_preinc, loadhisi_predec): New patterns.

I'd rather not.  There shouldn't be any need for special patterns for
these sorts of cases now that the compiler knows about pre/post_modify. 
Instead you should check that arm_legitimate_address accepts these cases
and handle them there.

R.


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