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?


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:dave.korn@artimi.com] 
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....




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