aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-09-14 22:41:03 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-09-14 15:41:03 -0700
commit187c10dc7be89ff530b37df6a07d301a4be46e83 (patch)
tree685663847c8033b35bccb89f19262750c5398837
parent2c03791b9cc3866873a7f8a2b408865beee6dbd4 (diff)
downloadgcc-187c10dc7be89ff530b37df6a07d301a4be46e83.zip
gcc-187c10dc7be89ff530b37df6a07d301a4be46e83.tar.gz
gcc-187c10dc7be89ff530b37df6a07d301a4be46e83.tar.bz2
Define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for rs6000.
2010-09-14 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/45672 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New. From-SVN: r164289
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 979489b..624a773 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 2ebe484..713811b 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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