https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128912
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-11-20
Target Milestone|--- |14.5
CC| |jsm28 at gcc dot gnu.org
Ever confirmed|0 |1
Priority|P3 |P2
Status|UNCONFIRMED |NEW
Target| |x86_64-*-*
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
Applying pattern match.pd:6387, generic-match-4.cc:4552
/* Likewise, if the intermediate and initial types are either both
float or both integer, we don't need the middle conversion if the
former is wider than the latter and doesn't change the signedness
(for integers). Avoid this if the final type is a pointer since
then we sometimes need the middle conversion. */
(if (((inter_int && inside_int) || (inter_float && inside_float))
&& (final_int || final_float)
&& inter_prec >= inside_prec
&& (inter_float || inter_unsignedp == inside_unsignedp)
&& (! is_vec
|| supportable_convert_operation (ocvt, type, TREE_TYPE (@0))))
(ocvt @0))
which likely triggers for (double) (_Float16) __bf16-converted-a meaning
the inter_prec >= inside_prec check is not sufficient.
ISTR we played some "tricks" with float precisions to force some ordering,
but is there even any ordering between _Float16 and __bf16?