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
This commit is contained in:
H.J. Lu 2010-09-14 22:41:03 +00:00 committed by H.J. Lu
parent 2c03791b9c
commit 187c10dc7b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View 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