mirror of
https://github.com/opencv/opencv.git
synced 2026-11-21 00:35:35 -06:00
Ordered not-equal predicates (_CMP_NEQ_OQ in AVX/AVX-512 and vfcmp_cne/xvfcmp_cne in LoongArch LSX/LASX) return false when either operand is NaN, violating IEEE-754 != semantics and diverging from C++, SSE (_mm_cmpneq_ps/_pd), NEON, MSA, VSX, WASM, and RVV implementations (as well as callers like intrin_math.hpp that use v_ne(x, x) to detect NaNs). Switch floating-point v_ne to unordered not-equal (_CMP_NEQ_UQ and vfcmp_cune/xvfcmp_cune) and add NaN coverage to test_cmp().