OSDN Git Service

Define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for rs6000.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 2010 22:41:03 +0000 (22:41 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 2010 22:41:03 +0000 (22:41 +0000)
2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/45672
* config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.

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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 979489b..624a773 100644 (file)
@@ -1,5 +1,10 @@
 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
 
+       PR bootstrap/45672
+       * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
+
+2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
+
        * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
        result isn't used in memory address.
 
index 2ebe484..713811b 100644 (file)
@@ -1085,6 +1085,7 @@ static bool rs6000_builtin_support_vector_misalignment (enum
                                                        int, bool);
 static int rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt,
                                               tree, int);
+static int rs6000_units_per_simd_word (enum machine_mode);
 
 static void def_builtin (int, const char *, tree, int);
 static bool rs6000_vector_alignment_reachable (const_tree, bool);
@@ -1485,6 +1486,9 @@ static const struct attribute_spec rs6000_attribute_table[] =
 #undef TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST
 #define TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST \
   rs6000_builtin_vectorization_cost
+#undef TARGET_VECTORIZE_UNITS_PER_SIMD_WORD
+#define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD \
+  rs6000_units_per_simd_word
 
 #undef TARGET_INIT_BUILTINS
 #define TARGET_INIT_BUILTINS rs6000_init_builtins