This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH] Improve -mavx{,2} vector extraction
On 09/16/2011 08:22 AM, Jakub Jelinek wrote:
> * config/i386/sse.md (vec_extract_hi_<mode>,
> vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
> vextracti128 instead of vextractf128 for -mavx2 and
> integer vectors. For V4DFmode fix up mode attribute.
> (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
> (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
> instead of V8SF mode attribute.
> (avx2_extracti128): Change into define_expand.
> * config/i386/i386.c (ix86_expand_vector_extract): Handle
> 32-byte vector modes if TARGET_AVX.
>
> * gcc.target/i386/sse2-extract-1.c: New test.
> * gcc.target/i386/avx-extract-1.c: New test.
Ok.
r~