https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122647
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:ea5b02407215fb76faafbbbc2be90238d3359545 commit r16-5191-gea5b02407215fb76faafbbbc2be90238d3359545 Author: Richard Biener <[email protected]> Date: Wed Nov 12 10:03:23 2025 +0100 tree-optimization/122647 - missing bool pattern for bool -> float conversion The following adds missing support for bool to float conversion which can be exposed via C++ __builtin_bit_cast. It also corrects a too lose check in vectorizable_conversion which would have resolved the ICE but left us with the missed optimization. PR tree-optimization/122647 * tree-vect-stmts.cc (vectorizable_conversion): Fix guard on bool to non-bool conversion. * tree-vect-patterns.cc (vect_recog_bool_pattern): Also handle FLOAT_EXPR from bool. * g++.dg/vect/pr122647.cc: New testcase.
