https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102464
--- Comment #11 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:22ce7382fccc15ce2355306b3f5be7afc00f81f4 commit r12-4881-g22ce7382fccc15ce2355306b3f5be7afc00f81f4 Author: liuhongt <hongtao....@intel.com> Date: Wed Nov 3 16:07:34 2021 +0800 Simplify (trunc)copysign((extend)a, (extend)b) to .COPYSIGN (a,b). a and b are same type as the truncation type and has less precision than extend type. gcc/ChangeLog: PR target/102464 * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to .COPYSIGN (a,b) when a and b are same type as the truncation type and has less precision than extend type. gcc/testsuite/ChangeLog: * gcc.target/i386/pr102464-copysign-1.c: New test.