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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>:

https://gcc.gnu.org/g:93e6809459f34ca7b5928f1729246b2e9dfb3eb4

commit r12-3368-g93e6809459f34ca7b5928f1729246b2e9dfb3eb4
Author: liuhongt <hongtao....@intel.com>
Date:   Mon Sep 6 17:09:38 2021 +0800

    Avoid FROM being overwritten in expand_fix.

    For the conversion from _Float16 to int, if the corresponding optab
    does not exist, the compiler will try the wider mode (SFmode here),
    but when floatsfsi exists but FAIL, FROM will be rewritten, which
    leads to a PR runtime error.

    gcc/ChangeLog:

            PR middle-end/102182
            * optabs.c (expand_fix): Add from1 to avoid from being
            overwritten.

    gcc/testsuite/ChangeLog:

            PR middle-end/102182
            * gcc.target/i386/pr101282.c: New test.

Reply via email to