https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118892
--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>: https://gcc.gnu.org/g:9ce381170ed40874230db05111f8837475634e4b commit r14-11689-g9ce381170ed40874230db05111f8837475634e4b Author: Tamar Christina <tamar.christ...@arm.com> Date: Mon Apr 28 12:58:37 2025 +0100 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.