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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>:

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

commit r15-7809-gd883f3233c4b7e0dce52539a12dfcccc8aff43e4
Author: Tamar Christina <tamar.christ...@arm.com>
Date:   Tue Mar 4 11:15:26 2025 +0000

    aarch64: force operand to fresh register to avoid subreg issues [PR118892]

    When the input is already a subreg and we try to make a paradoxical
    subreg out of it for copysign this can fail if it violates the subreg
    relationship.

    Use force_lowpart_subreg instead of lowpart_subreg to then force the
    results to a register instead of ICEing.

    gcc/ChangeLog:

            PR target/118892
            * config/aarch64/aarch64.md (copysign<GPF:mode>3): Use
            force_lowpart_subreg instead of lowpart_subreg.

    gcc/testsuite/ChangeLog:

            PR target/118892
            * gcc.target/aarch64/copysign-pr118892.c: New test.

Reply via email to