[clang] [X86][Headers] Specify result of NaN comparisons (PR #85862)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 19 23:10:26 PDT 2024


================
@@ -4743,7 +4771,9 @@ static __inline__ __m128d __DEFAULT_FN_ATTRS _mm_castsi128_pd(__m128i __a) {
 ///    128-bit vectors of [2 x double], using the operation specified by the
 ///    immediate integer operand.
 ///
-///    Each comparison yields 0x0 for false, 0xFFFFFFFFFFFFFFFF for true.
+///    Each comparison returns 0x0 for false, 0xFFFFFFFFFFFFFFFF for true.
+///    If either value in a comparison is NaN, comparisons marked as ordered
----------------
craigflores wrote:

Say instead: "comparisons that are ordered return false, and comparisons that are unordered return true"? If no, I don't care for marked/unmarked. There are other instances of marked/unmarked that I have not flagged.

https://github.com/llvm/llvm-project/pull/85862


More information about the cfe-commits mailing list