From 0bf4330958042e3e499c6dc5f37e120354c58319 Mon Sep 17 00:00:00 2001 From: Dorit Nuzman Date: Wed, 18 Aug 2004 11:09:36 +0000 Subject: [PATCH] Part of the vectorizer patch that was accidently left out...: * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define. * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define. From-SVN: r86180 --- gcc/config/i386/i386.h | 3 +++ gcc/config/rs6000/rs6000.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 742575c9787..b4a7ed8bf1e 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1080,6 +1080,9 @@ do { \ : VALID_MMX_REG_MODE (MODE) && TARGET_MMX ? 1 \ : VALID_MMX_REG_MODE_3DNOW (MODE) && TARGET_3DNOW ? 1 : 0) +#define UNITS_PER_SIMD_WORD \ + (TARGET_SSE ? 16 : TARGET_MMX || TARGET_3DNOW ? 8 : 0) + #define VALID_FP_MODE_P(MODE) \ ((MODE) == SFmode || (MODE) == DFmode || (MODE) == XFmode \ || (MODE) == SCmode || (MODE) == DCmode || (MODE) == XCmode) \ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 2ec4c71321b..6b3a36ceca1 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -1031,6 +1031,9 @@ extern const char *rs6000_warn_altivec_long_switch; ((TARGET_SPE && SPE_VECTOR_MODE (MODE)) \ || (TARGET_ALTIVEC && ALTIVEC_VECTOR_MODE (MODE))) +#define UNITS_PER_SIMD_WORD \ + (TARGET_ALTIVEC ? 16 : (TARGET_SPE ? 8 : 0) ) + /* Value is TRUE if hard register REGNO can hold a value of machine-mode MODE. */ #define HARD_REGNO_MODE_OK(REGNO, MODE) \ -- 2.30.2