Dave, Is is only for 4.3+? Define_mode_iterator is not recognized in 4.2.1 I am working on. And I didn't find anything in GCC4.2.1 internal manual either.
Cheer. Bingfeng -----Original Message----- From: Dave Korn [mailto:[EMAIL PROTECTED] Sent: 22 November 2007 15:00 To: Bingfeng Mei; gcc@gcc.gnu.org Subject: RE: Simple way to write almost same pattern? On 22 November 2007 14:30, Bingfeng Mei wrote: > Hi, > > I am writing instruction patterns for vector modes (V4Si, V8HI, V16QI, > etc). Since these modes have the same length, the underlying > instructions may also be the same (load/store instrucitons, AND/OR > instructions, etc). Is there any simple way to combines patterns for > different modes instead of writing the following code? A simple form > should be more maintainable. Absolutely: see http://gcc.gnu.org/onlinedocs/gccint/Iterators.html#Iterators cheers, DaveK -- Can't think of a witty .sigline today....