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

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

https://gcc.gnu.org/g:f1f2228159e146811666f18226432125ecb37e01

commit r16-9991-gf1f2228159e146811666f18226432125ecb37e01
Author: Hongyu Wang <[email protected]>
Date:   Sun Nov 15 22:42:15 2026 -0800

    i386: Only use VCOMX for FP EQ/NE when NaNs are honored [PR128770]

    Without NaNs, COMI already tests EQ/NE with ZF alone, and the
    UNSPEC_OPTCOMX wrapper hides the compare from if-conversion, so
    selects become GPR cmov instead of vcmp+blend.

    gcc/ChangeLog:

            PR target/128770
            * config/i386/i386-expand.cc (ix86_expand_fp_compare): Use
            UNSPEC_OPTCOMX only if HONOR_NANS.

    gcc/testsuite/ChangeLog:

            PR target/128770
            * gcc.target/i386/pr128770.c: New test.

    (cherry picked from commit 3d528cfb4b7952d6bb506a60314966e465a31944)

Reply via email to