https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102464
--- Comment #14 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:b879d40a17ec0409f1a2cd9ab6134bb28f53eea8 commit r12-5079-gb879d40a17ec0409f1a2cd9ab6134bb28f53eea8 Author: liuhongt <hongtao....@intel.com> Date: Thu Nov 4 16:05:45 2021 +0800 Simplify (trunc)MAX/MIN((extend)a, (extend)b) to MAX/MIN(a,b) a and b are same type as trunc type and has less precision than extend type. gcc/ChangeLog: PR target/102464 * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to MAX/MIN(a,b) gcc/testsuite/ChangeLog: * gcc.target/i386/pr102464-maxmin.c: New test.