This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] [rs6000] implement vector float->int conversion for altivec
- From: Dorit Nuzman <DORIT at il dot ibm dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: David Edelsohn <dje at watson dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 Aug 2008 15:39:44 +0300
- Subject: Re: [patch] [rs6000] implement vector float->int conversion for altivec
> Dorit Nuzman wrote:
> > Hi,
> >
> > This patch models the vector float-to-int conversion for altivec
> > (int-to-float already existed) in the rs6000 implementation of the
target
> > builtin vectorize_builtin_conversion.
> >
> > A minor change for the definition of the builtin was required:
> > builtin_conversion (which is used for both int-to-float and
float-to-int)
> > used to take as argument the rhs of the conversion. Instead, it now
takes
> > as argument the type of the int side of the conversion, because we need
to
> > know whether it's a conversion to/from signed or unsigned.
>
> Why not pass both?
>
because the integral type countains all the information we need (cause
vectorize_builtin_conversion deals with ints/floats of the same size, no
demotion/promotion), so it would be redundant
dorit
> Paolo