[Bug c++/80124] Possible bug in _mm_cmpeq_ps

2017-03-20 Thread glisse at gcc dot gnu.org
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.

[Bug c++/80124] Possible bug in _mm_cmpeq_ps

2017-03-20 Thread guille at berkeley dot edu
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.

[Bug c++/80124] Possible bug in _mm_cmpeq_ps

2017-03-20 Thread guille at berkeley dot edu
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=edit the code that triggers possible bug Compile with 'c++ t.c' (or maybe 'c++ -msse -msse2 t.c').

[Bug c++/80124] Possible bug in _mm_cmpeq_ps

2017-03-20 Thread guille at berkeley dot edu
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.