[clang] [Headers][X86] Add rounding and exception notes to conversions (PR #83447)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 8 01:26:14 PST 2024
================
@@ -1405,11 +1413,12 @@ static __inline__ __m128d __DEFAULT_FN_ATTRS _mm_cvtss_sd(__m128d __a,
/// Converts the two double-precision floating-point elements of a
/// 128-bit vector of [2 x double] into two signed 32-bit integer values,
-/// returned in the lower 64 bits of a 128-bit vector of [4 x i32].
+/// returned in the lower 64 bits of a 128-bit vector of [4 x i32],
+/// truncating inexact results.
----------------
phoebewang wrote:
The last sentence is not necessary and has ambiguity in truncating the fractional part or truncating higher bits to 32-bit.
https://github.com/llvm/llvm-project/pull/83447
More information about the cfe-commits
mailing list