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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Haochen Jiang
<[email protected]>:

https://gcc.gnu.org/g:171d15ac6959a911a5e9a44642516d1d26ca724d

commit r16-9420-g171d15ac6959a911a5e9a44642516d1d26ca724d
Author: Haochen Jiang <[email protected]>
Date:   Tue Jul 28 11:00:38 2026 +0800

    i386: Correct vdpbf16ps mask usage in pattern [PR126429]

    512 bit vdpbf16ps is using 16 bit mask. However, it only take the lower 8
    bit into consideration due to avx512fhalfmaskmode usage in pattern.

    Correct to avx512fmaskmode and remove not used iterators and patterns.
    256 bit and 128 bit vdpbf16ps are not affected since they are both 8 bit
    mask.

    gcc/ChangeLog:

            PR target/126429
            * config/i386/sse.md (avx512fmaskhalfmode): Removed.
            (avx512f_dpbf16ps_<mode>_maskz): Use avx512fmaskmode instead of
            avx512fmaskhalfmode.
            (avx512f_dpbf16ps_<mode>_mask): Ditto.
            (avx512f_dpbf16ps_<mode><maskz_half_name>): Rename to ...
            (avx512f_dpbf16ps_<mode><sd_maskz_name>): ... this. Use
            corresponding sd_mask_op4.
            * config/i386/subst.md (maskz_half): Remove not used pattern.

    gcc/testsuite/ChangeLog:

            PR target/126429
            * gcc.target/i386/pr126429-1.c: New test.

    (cherry picked from commit ed04be2c33faaf19d14521f8e6959b12a812701a)

Reply via email to