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


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