This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFC: Define UNITS_PER_SIMD_WORD as a macro of scalar mode
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>, dorit at il dot ibm dot com, "Richard Guenther" <rguenther at suse dot de>, "Zdenek Dvorak" <ook at ucw dot cz>
- Date: Mon, 19 May 2008 12:27:44 -0700
- Subject: RFC: Define UNITS_PER_SIMD_WORD as a macro of scalar mode
Hi,
AVX has 256bit integer and floating point vector registers. However,
it doesn't support
all vector operations for 256bit integer vectors. That means
vectorizer should generate
256bit floating point vector instructions and 128bit integer integer
vector instructions for
AVX.
However, UNITS_PER_SIMD_WORD is defined as a constant. I'd like to change it
to a function/macro of underling scalar mode.
Thanks.
H.J.