[clang] 1fde372 - [Headers][doc] Add description of _mm256_movemask_epi8
Paul Robinson via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 25 10:00:21 PDT 2023
Author: Paul Robinson
Date: 2023-07-25T10:00:13-07:00
New Revision: 1fde372b320015f22e24b67c41c7028974a4a223
URL: https://github.com/llvm/llvm-project/commit/1fde372b320015f22e24b67c41c7028974a4a223
DIFF: https://github.com/llvm/llvm-project/commit/1fde372b320015f22e24b67c41c7028974a4a223.diff
LOG: [Headers][doc] Add description of _mm256_movemask_epi8
Differential revision: https://reviews.llvm.org/D156248
Added:
Modified:
clang/lib/Headers/avx2intrin.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/avx2intrin.h b/clang/lib/Headers/avx2intrin.h
index 8f2de05674c891..c45006193eddcc 100644
--- a/clang/lib/Headers/avx2intrin.h
+++ b/clang/lib/Headers/avx2intrin.h
@@ -1307,6 +1307,23 @@ _mm256_min_epu32(__m256i __a, __m256i __b)
return (__m256i)__builtin_elementwise_min((__v8su)__a, (__v8su)__b);
}
+/// Creates a 32-bit integer mask from the most significant bit of each byte
+/// in the 256-bit integer vector in \a __a and returns the result.
+///
+/// \code{.operation}
+/// FOR i := 0 TO 31
+/// j := i*8
+/// result[i] := __a[j+7]
+/// ENDFOR
+/// \endcode
+///
+/// \headerfile <immintrin.h>
+///
+/// This intrinsic corresponds to the \c VPMOVMSKB instruction.
+///
+/// \param __a
+/// A 256-bit integer vector containing the source bytes.
+/// \returns The 32-bit integer mask.
static __inline__ int __DEFAULT_FN_ATTRS256
_mm256_movemask_epi8(__m256i __a)
{
More information about the cfe-commits
mailing list