[patch] [rs6000] implement vector float->int conversion for altivec

Paolo Bonzini bonzini@gnu.org
Thu Aug 7 08:06:00 GMT 2008


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?

Paolo



More information about the Gcc-patches mailing list