https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94006
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2020-03-03 00:00:00 |2021-8-21 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- If we do this, we optimize it at the gimple level: std::strong_ordering f1(int a, int b) { std::strong_ordering t = a == b ? std::strong_ordering::equal : std::strong_ordering::less; return t; } :)