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

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

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

commit r14-12065-g1b05992fe00b8642e44e56ccd8ab26b1c19716e9
Author: Georg-Johann Lay <[email protected]>
Date:   Sun Oct 5 20:56:56 2025 +0200

    AVR/LibF7: target/122177 - fix fmin / fmax return value for one NaN arg.

    fmin and fmax should return the non-NaN argument in the case where
    exactly one argument is a NaN.

    Moreover, IEEE double fmin and fmax can be performed without
    first converting the args to the internal representation and
    then converting back again.

            PR target/122177
    libgcc/config/avr/libf7/
            * libf7-common.mk (m_ddd): Remove: fmin, fmax.
            (F7_ASM_PARTS): Add: D_fminfmax.
            * libf7-asm.sx (D_fmanfmax): New module.
            * f7-wraps.h: Rebuild.

    gcc/testsuite/
            * gcc.target/avr/fminfmax-1.c: New test.

    (cherry picked from commit efb3cd64fdefab88c7787b16ad33be33f4c4a2a4)

Reply via email to