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: help on adding new insns like min/max


Dale,

Thanks for your reply, but I wonder how gcc will handle code like:
c = min(a, b)
Does min/max will be treated as builtins? Or can you demonstrate
how to make gcc to use sminsi3/smaxsi3... to use min/max insns for 
code like that?
Thanks a lot.

Ming

--- Dale Johannesen <dalej@apple.com> wrote:
> 
> On Monday, October 21, 2002, at 03:07  PM, Ming Ouyang wrote:
> 
> > Hi everyone,
> >
> > I need to add new insns support to our gcc 3.0 to support min
> > and max insns, but it seems that I can't describe such function-level
> > insns on RTL level, probably I need to change something in c-common.c
> > or something like it?
> 
> The patterns smin<type>, umin<type>, smax<type>, umax<type> are 
> supported
> in RTL.
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/


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