https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112483
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Xi Ruoyao <xry...@gcc.gnu.org>: https://gcc.gnu.org/g:7ba7529ee3974667a8e68d089b606ac2fb159415 commit r14-5377-g7ba7529ee3974667a8e68d089b606ac2fb159415 Author: Xi Ruoyao <xry...@xry111.site> Date: Sun Nov 12 14:16:20 2023 +0000 Fix (fcopysign x, NEGATIVE_CONST) -> (fneg (fabs x)) simplification [PR112483] (fcopysign x, NEGATIVE_CONST) can be simplified to (fneg (fabs x)), but a logic error in the code caused it mistakenly simplified to (fneg x) instead. gcc/ChangeLog: PR rtl-optimization/112483 * simplify-rtx.cc (simplify_binary_operation_1) <case COPYSIGN>: Fix the simplification of (fcopysign x, NEGATIVE_CONST).