https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117823
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
We tend to not have 's' (aka signed) prefixed optab names for FP ops, so a
'dot_prod' pattern for FP only would be more consistent. No strong opinion
here though.
Whether it needs -ffast-math depends on how it behaves with respect to
rounding I guess. If (float)bf16 * (float)bf16 + (float)bf16 * (float)bf16
performs the float add without intermediate rounding for the multiplications
it falls under the same umbrella as FMA - is there more actual difference?