i386.c (ix86_vectorize_builtin_conversion): Never vectorize if not TARGET_SSE2.
authorChris Demetriou <cgd@google.com>
Tue, 1 Sep 2009 07:08:20 +0000 (09:08 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 1 Sep 2009 07:08:20 +0000 (09:08 +0200)
* config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
vectorize if not TARGET_SSE2.

From-SVN: r151259

gcc/ChangeLog
gcc/config/i386/i386.c

index 9ef3dc2..61edf90 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-31  Chris Demetriou  <cgd@google.com>
+
+       * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
+       vectorize if not TARGET_SSE2.
+
 2009-08-31  DJ Delorie  <dj@redhat.com>
 
        * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
@@ -51,7 +56,8 @@
 
        * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
        it once we start generating the prologue or epilogue.
-       (mep_call_saves_register): If the frame is locked, re-use cached values.
+       (mep_call_saves_register): If the frame is locked, re-use
+       cached values.
        (mep_assign_save_slots): New, broken out from mep_expand_prologue.
        (mep_expand_prologue): Call it.
        (mep_expand_epilogue): Likewise.
 
 2009-08-26  Richard Guenther  <rguenther@suse.de>
 
-       * tree-ssa-structalias.c (create_variable_info_for): Remove
-       strange whole-program condition, prepare to be called for non-globals.
+       * tree-ssa-structalias.c (create_variable_info_for): Remove strange
+       whole-program condition, prepare to be called for non-globals.
        (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
        params build a representative with known type and track its fields.
 
 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
 
        PR/40786
-       * c-format.c (format_wanted_type):  Add new member scalar_identity_flag.
+       * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
        (check_format_info_main): Use scalar_identify_flag.
        (check_format_types): Check for scalar size identity if
        scalar_identify_flag is set.
index 0316b36..dfa35f1 100644 (file)
@@ -24845,7 +24845,7 @@ ix86_veclibabi_acml (enum built_in_function fn, tree type_out, tree type_in)
 static tree
 ix86_vectorize_builtin_conversion (unsigned int code, tree type)
 {
-  if (TREE_CODE (type) != VECTOR_TYPE)
+  if (! (TARGET_SSE2 && TREE_CODE (type) == VECTOR_TYPE))
     return NULL_TREE;
 
   switch (code)