[Bug target/104253] libgcc missing __floatdiif

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 5 16:23:50 GMT 2022


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

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Michael Meissner
<meissner@gcc.gnu.org>:

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

commit r11-9638-ga1984704a7c2b9be8c89b3381e9c453ccbc5e7bf
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Sat Mar 5 11:19:43 2022 -0500

    Use correct names for __ibm128 if long double is IEEE 128-bit.

    If you are on a PowerPC system where the default long double is IEEE
    128-bit (either through the compiler option -mabi=ieeelongdouble or via
    the configure option --with-long-double-format=ieee), GCC used the wrong
    names for some of the conversion functions for the __ibm128 type.

    Internally, GCC uses IFmode for __ibm128 if long double is IEEE 128-bit,
    instead of TFmode when long double is IBM 128-bit.  This patch adds the
    missing conversions to prevent the 'if' name from being used.

    In particular, before the patch, the conversions used were:

        IFmode to DImode signed:    __fixifdi       instead of __fixtfdi
        IFmode to DImode unsigned   __fixunsifti    instead of __fixunstfti
        DImode to IFmode signed:    __floatdiif     instead of __floatditf
        DImode to IFmode unsigned:  __floatundiif   instead of __floatunditf

    2022-03-05  Michael Meissner  <meissner@the-meissners.org>

    gcc/
            PR target/104253
            * config/rs6000/rs6000.c (init_float128_ibm): Update the
            conversion functions used to convert IFmode types.  Backport
            change from 2022-02-14 made on the master branch.

    gcc/testsuite/
            PR target/104253
            * gcc.target/powerpc/pr104253.c: New test.  Backport
            change from 2022-02-14 made on the master branch.


More information about the Gcc-bugs mailing list