[Bug target/103753] Unoptimal avx2 V16HF vector insert to element 0

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 7 03:08:45 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103753

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:1f759dbdcddd5eae795da48f46edae274a431cbc

commit r12-6337-g1f759dbdcddd5eae795da48f46edae274a431cbc
Author: liuhongt <hongtao.liu@intel.com>
Date:   Wed Jan 5 15:26:18 2022 +0800

    Optimize V16HF vector insert to element 0 for AVX2.

    gcc/ChangeLog:

            PR target/103753
            * config/i386/i386-expand.c (ix86_expand_vector_set): Not use
            gen_avx2_pblendph_1 when elt == 0.
            * config/i386/sse.md (avx2_pblendph): Rename to ..
            (avx2_pblend<ssemodesuffix>_1).. this, and extend to V16HI.
            (*avx2_pblendw): Rename to ..
            (*avx2_pblend<ssemodesuffix>): .. this, and extend to V16HF.
            (avx2_pblendw): Rename to ..
            (*avx2_pblend<ssemodesuffix>): .. this, and extend to V16HF.
            (blendsuf): Removed.
            (sse4_1_pblend<blendsuf>): Renamed to ..
            (sse4_1_pblend<ssemodesuffix>): .. this.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr103753.c: New test.


More information about the Gcc-bugs mailing list