This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[vect256] PATCH: Define UNITS_PER_SIMD_WORD_MAX with UNITS_PER_SIMD_WORD


Hi,

I checked in this patch to define UNITS_PER_SIMD_WORD_MAX with
UNITS_PER_SIMD_WORD.


H.J.
---
diff --git a/gcc/ChangeLog.vect256 b/gcc/ChangeLog.vect256
index 2f3c57e..0c7e253 100644
--- a/gcc/ChangeLog.vect256
+++ b/gcc/ChangeLog.vect256
@@ -1,5 +1,10 @@
 2010-05-11  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* config/i386/i386.h (UNITS_PER_SIMD_WORD_MAX): Use
+	UNITS_PER_SIMD_WORD.
+
+2010-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* config/i386/i386.h (UNITS_PER_SIMD_WORD_MAX): New.
 	* config/i386/i386.c (ix86_build_const_vector): Check
 	UNITS_PER_SIMD_WORD_MAX.
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 263108d..2fb498d 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -1036,10 +1036,8 @@ enum target_cpu_default
 		    : 16))						\
    	      : (TARGET_SSE ? 16 : UNITS_PER_WORD))
 
-/* Similar to UNITS_PER_SIMD_WORD, assuming VF is maximum.  */
-#define UNITS_PER_SIMD_WORD_MAX(MODE)					\
-  (TARGET_AVX ? ((MODE) == DFmode || (MODE) == SFmode) ? 32 : 16	\
-   	      : (TARGET_SSE ? 16 : UNITS_PER_WORD))
+/* Similar to UNITS_PER_SIMD_WORD, assuming VF is 128 byte.  */
+#define UNITS_PER_SIMD_WORD_MAX(MODE) UNITS_PER_SIMD_WORD ((MODE), 128)
 
 #define VALID_DFP_MODE_P(MODE) \
   ((MODE) == SDmode || (MODE) == DDmode || (MODE) == TDmode)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]