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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Hongyu Wang <[email protected]>:

https://gcc.gnu.org/g:11ef3c2e4fb97fc200edb74ce602960af0eaa354

commit r16-7098-g11ef3c2e4fb97fc200edb74ce602960af0eaa354
Author: Hongyu Wang <[email protected]>
Date:   Tue Jan 27 15:38:12 2026 +0800

    i386: Drop mask subst for define_insn_and_split of extend [PR123779]

    For define_insn_and_split, the subst applied only for the define_insn
    part, not the define_split part. So several define_insn_and_split with
    mask_name is actually producing non-splitable insns, resulting ICE in
    lra. Separate them to define_insn_and_split for mask/nonmask variants
    to generate corresponding splitters.

            PR target/123779

    gcc/ChangeLog:

            * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2):
            Rename to ...
            (*sse4_1_<code>v8qiv8hi2_2): ... this, and drop mask conditions.
            (*avx2_<code>v8qiv8si2<mask_name>_2): Rename to ...
            (*avx2_<code>v8qiv8si2_2): ... this, and likewise.
            (*sse4_1_<code>v4qiv4si2<mask_name>_2): Rename to ...
            (*sse4_1_<code>v4qiv4si2_2): ... this, and likewise.
            (*sse4_1_<code>v4hiv4si2<mask_name>_2): Rename to ...
            (*sse4_1_<code>v4hiv4si2_2): ... this, and likewise.
            (*avx2_<code>v4qiv4di2<mask_name>_2): Rename to ...
            (*avx2_<code>v4qiv4di2_2): ... this, and likewise.
            (*avx2_<code>v4hiv4di2<mask_name>_2): Rename to ...
            (*avx2_<code>v4hiv4di2_2): ... this, and likewise.
            (*sse4_1_<code>v2hiv2di2<mask_name>_2): Rename to ...
            (*sse4_1_<code>v2hiv2di2_2): ... this, and likewise.
            (*sse4_1_<code>v2siv2di2<mask_name>_2): Rename to ...
            (*sse4_1_<code>v2siv2di2_2): ... this, and likewise.
            (*avx512f_<code>v8qiv8di2<mask_name>_2): Rename to ...
            (*avx512f_<code>v8qiv8di2_2): ... this.
            (*avx512vl_<code>v8qiv8hi2_mask_2): New define_insn_and_split.
            (*avx512vl_<code>v8qiv8si2_mask_2): Likewise.
            (*avx512vl_<code>v4qiv4si2_mask_2): Likewise.
            (*avx512vl_<code>v4hiv4si2_mask_2): Likewise.
            (*avx512f_<code>v8qiv8di2_mask_2): Likewise.
            (*avx512vl_<code>v4qiv4di2_mask_2): Likewise.
            (*avx512vl_<code>v4hiv4di2_mask_2): Likewise.
            (*avx512vl_<code>v2hiv2di2_mask_2): Likewise.
            (*avx512vl_<code>v2siv2di2_mask_2): Likewise.

    gcc/testsuite/ChangeLog:

            * g++.target/i386/pr123779.C: New test.

Reply via email to