https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82062
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- That would be nice, but to fix this PR, I think all we need is to re-add the optimization I removed in PR81814 (but only if the precision match).