aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2008-05-22 12:43:16 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2008-05-22 05:43:16 -0700
commit9d3a9de1ee02811717f605b56bb0064cad19a82e (patch)
tree63f0f4421ad75511d63828fa645f16face8c9dc8 /gcc/config/arm
parentd36f0e7895c96cbbbb6f67a9691c3ee839c73af1 (diff)
downloadgcc-9d3a9de1ee02811717f605b56bb0064cad19a82e.zip
gcc-9d3a9de1ee02811717f605b56bb0064cad19a82e.tar.gz
gcc-9d3a9de1ee02811717f605b56bb0064cad19a82e.tar.bz2
defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
2008-05-22 H.J. Lu <hongjiu.lu@intel.com> * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument. * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise. * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)). (vect_update_misalignment_for_peel): Likewise. (vector_alignment_reachable_p): Likewise. * tree-vect-transform.c (vectorizable_load): Likewise. * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise. * tree-vectorizer.c (get_vectype_for_scalar_type): Pass mode of scalar_type to UNITS_PER_SIMD_WORD. * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated. * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise. * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise. * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise. * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise. From-SVN: r135759
Diffstat (limited to 'gcc/config/arm')
-rw-r--r--gcc/config/arm/arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index 7f10a57..b77a2ac 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -506,7 +506,7 @@ extern int arm_arch_hwdiv;
/* Use the option -mvectorize-with-neon-quad to override the use of doubleword
registers when autovectorizing for Neon, at least until multiple vector
widths are supported properly by the middle-end. */
-#define UNITS_PER_SIMD_WORD \
+#define UNITS_PER_SIMD_WORD(MODE) \
(TARGET_NEON ? (TARGET_NEON_VECTORIZE_QUAD ? 16 : 8) : UNITS_PER_WORD)
/* True if natural alignment is used for doubleword types. */