OSDN Git Service

2010-04-09 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Apr 2010 13:21:43 +0000 (13:21 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:30:46 +0000 (14:30 +0900)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158162 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-vect-stmts.c

index 6ded345..890b2cb 100644 (file)
@@ -1,5 +1,17 @@
 2010-04-09  Richard Guenther  <rguenther@suse.de>
 
 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.
+
+2010-04-09  Richard Guenther  <rguenther@suse.de>
+
        PR target/43152
        * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
 
        PR target/43152
        * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
 
index b91f8d1..0dabb6a 100644 (file)
@@ -1619,8 +1619,6 @@ vectorizable_conversion (gimple stmt, gimple_stmt_iterator *gsi,
   else
     return false;
 
   else
     return false;
 
-  integral_type = INTEGRAL_TYPE_P (rhs_type) ? vectype_in : vectype_out;
-
   if (modifier == NARROW)
     ncopies = LOOP_VINFO_VECT_FACTOR (loop_vinfo) / nunits_out;
   else
   if (modifier == NARROW)
     ncopies = LOOP_VINFO_VECT_FACTOR (loop_vinfo) / nunits_out;
   else