diff options
author | Richard Guenther <rguenther@suse.de> | 2010-04-09 13:21:43 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-04-09 13:21:43 +0000 |
commit | 88dd71504e89d86f723861404153b071d3113b39 (patch) | |
tree | 25782c93a9adf744980ea7689e440093b39185ad /gcc/doc | |
parent | 7d7a1fe85989e4f3998060ed9f2d4d6973e39eed (diff) | |
download | gcc-88dd71504e89d86f723861404153b071d3113b39.zip gcc-88dd71504e89d86f723861404153b071d3113b39.tar.gz gcc-88dd71504e89d86f723861404153b071d3113b39.tar.bz2 |
target.h (builtin_conversion): Pass in input and output types.
2010-04-09 Richard Guenther <rguenther@suse.de>
* 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
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 8 |
1 files changed, 2 insertions, 6 deletions
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.). |