https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80124
--- Comment #4 from Marc Glisse ---
NaN (all-ones is a NaN) is not equal to itself, that's normal behavior.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80124
--- Comment #3 from Guille ---
Apologies, this maybe should've gone in the 'C bugs' section, not the C++
section.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80124
--- Comment #2 from Guille ---
Created attachment 41008
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41008&action=edit
the code that triggers possible bug
Compile with 'c++ t.c' (or maybe 'c++ -msse -msse2 t.c').
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80124
--- Comment #1 from Guille ---
I forgot to mention that a while back (~1year) I had a similar problem with
_mm256_cmp_ps(a,b, _CMP_EQ_OQ) (the AVX equivalent of _mm_cmpeq_ps), but I
wasn't able to isolate the problem back then.