https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84366
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- All ordered comparisons (< <= > >=) with at least one argument NaN should raise invalid, so it's indeed just one case of bug 58684.