probinson created this revision.
probinson added reviewers: pengfei, RKSimon, goldstein.w.n, craig.topper.
Herald added a project: All.
probinson requested review of this revision.
(Missed one from the list of functions I was asked to document. This really
should be the last review!)
https://reviews.llvm.org/D156248
Files:
clang/lib/Headers/avx2intrin.h
Index: clang/lib/Headers/avx2intrin.h
===================================================================
--- clang/lib/Headers/avx2intrin.h
+++ clang/lib/Headers/avx2intrin.h
@@ -1307,6 +1307,23 @@
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)
{
Index: clang/lib/Headers/avx2intrin.h
===================================================================
--- clang/lib/Headers/avx2intrin.h
+++ clang/lib/Headers/avx2intrin.h
@@ -1307,6 +1307,23 @@
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)
{
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits