https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771
--- Comment #46 from GCC 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:1e579e2eb5bf69419222a10afc854565b6bc0d78 commit r16-750-g1e579e2eb5bf69419222a10afc854565b6bc0d78 Author: liuhongt <hongtao....@intel.com> Date: Sun May 11 23:21:30 2025 -0700 Extend vect_recog_cond_expr_convert_pattern to handle REAL_CST REAL_CST is handled if it can be represented in different floating point types without loss of precision or under fast math. gcc/ChangeLog: PR tree-optimization/103771 * match.pd (cond_expr_convert_p): Extend the match to handle REAL_CST. * tree-vect-patterns.cc (vect_recog_cond_expr_convert_pattern): Handle REAL_CST. gcc/testsuite/ChangeLog: * gcc.target/i386/pr103771-5.c: New test. * gcc.target/i386/pr103771-6.c: New test.