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


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