This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: help on adding new insns like min/max
- From: Ming Ouyang <mouyang at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 21 Oct 2002 15:32:20 -0700 (PDT)
- Subject: 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/