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

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

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

commit r16-5978-ge3a60357520bc3d14a098ca748c49c44f97b03f5
Author: Richard Biener <[email protected]>
Date:   Mon Dec 8 10:14:19 2025 +0100

    target/123027 - handle min/max expansion when -ffinite-math-only

    When we get a <= b ? b : a into ix86_expand_sse_fp_minmax we can
    swap and invert this with -ffinite-math-only to get a < b ? a : b.

            PR target/123027
            * config/i386/i386-expand.cc (ix86_expand_sse_fp_minmax):
            With !HONOR_NANS we can handle LE by swapping and inverting.

            * gcc.target/i386/pr123027.c: New testcase.
            * gcc.dg/torture/pr123027.c: Likewise.

Reply via email to