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] |
My first patch doesn't change UNITS_PER_SIMD_WORD at all. It just removes the hardcoded UNITS_PER_SIMD_WORD usage. The only one left is in get_vectype_for_scalar_type.
I like this approach the most. As for get_vectype_for_scalar_type, this probably should be a target hook (effectively taking the place of UNITS_PER_SIMD_WORD).
nbytes = GET_MODE_SIZE (TYPE_MODE (scalar_type)); nunits = UNITS_PER_SIMD_WORD / nbytes; vectype = build_vector_type (scalar_type, nunits); if (!VECTOR_MODE_P (TYPE_MODE (vectype)) && !INTEGRAL_MODE_P (TYPE_MODE (vectype))) return NULL_TREE;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |