From 88dd71504e89d86f723861404153b071d3113b39 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 9 Apr 2010 13:21:43 +0000 Subject: target.h (builtin_conversion): Pass in input and output types. 2010-04-09 Richard Guenther * target.h (builtin_conversion): Pass in input and output types. * targhooks.c (default_builtin_vectorized_conversion): Adjust. * targhooks.h (default_builtin_vectorized_conversion): Likewise. * tree-vect-stmts.c (vectorizable_conversion): Adjust. * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust. * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust. Handle AVX modes. * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust. From-SVN: r158162 --- gcc/doc/tm.texi | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 8337e16..51172e4 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5700,13 +5700,9 @@ Target builtin that implements vector permute. Return true if a vector created for @code{builtin_vec_perm} is valid. @end deftypefn -@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_CONVERSION (unsigned @var{code}, tree @var{type}) +@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_CONVERSION (unsigned @var{code}, tree @var{dest_type}, tree @var{src_type}) This hook should return the DECL of a function that implements conversion of the -input vector of type @var{type}. -If @var{type} is an integral type, the result of the conversion is a vector of -floating-point type of the same size. -If @var{type} is a floating-point type, the result of the conversion is a vector -of integral type of the same size. +input vector of type @var{src_type} to type @var{dest_type}. The value of @var{code} is one of the enumerators in @code{enum tree_code} and specifies how the conversion is to be applied (truncation, rounding, etc.). -- cgit v1.1