Skip to content

Commit 14ac4e1

Browse files
committed
Add comments
1 parent d5fe633 commit 14ac4e1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

clang/lib/Headers/avx10_2copyintrin.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,45 @@
1919
__attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \
2020
__min_vector_width__(128)))
2121

22+
/// Constructs a 128-bit integer vector, setting the lower 32 bits to the
23+
/// lower 32 bits of the parameter \a __A; the upper bits are zeoroed.
24+
///
25+
/// \code{.operation}
26+
/// result[31:0] := __A[31:0]
27+
/// result[MAX:32] := 0
28+
/// \endcode
29+
///
30+
/// \headerfile <immintrin.h>
31+
///
32+
/// This intrinsic corresponds to the <c> VMOVD </c> instruction.
33+
///
34+
/// \param __A
35+
/// A 128-bit integer vector.
36+
///
37+
/// \returns A 128-bit integer vector. The lower 32 bits are copied from the
38+
/// parameter \a __A; the upper bits are zeroed.
2239
static __inline__ __m128i __DEFAULT_FN_ATTRS128 _mm_move_epi32(__m128i __A) {
2340
return (__m128i)__builtin_shufflevector(
2441
(__v4si)__A, (__v4si)_mm_setzero_si128(), 0, 4, 4, 4);
2542
}
2643

44+
/// Constructs a 128-bit integer vector, setting the lower 16 bits to the
45+
/// lower 16 bits of the parameter \a __A; the upper bits are zeoroed.
46+
///
47+
/// \code{.operation}
48+
/// result[15:0] := __A[15:0]
49+
/// result[MAX:16] := 0
50+
/// \endcode
51+
///
52+
/// \headerfile <immintrin.h>
53+
///
54+
/// This intrinsic corresponds to the <c> VMOVW </c> instruction.
55+
///
56+
/// \param __A
57+
/// A 128-bit integer vector.
58+
///
59+
/// \returns A 128-bit integer vector. The lower 16 bits are copied from the
60+
/// parameter \a __A; the upper bits are zeroed.
2761
static __inline__ __m128i __DEFAULT_FN_ATTRS128 _mm_move_epi16(__m128i __A) {
2862
return (__m128i)__builtin_shufflevector(
2963
(__v8hi)__A, (__v8hi)_mm_setzero_si128(), 0, 8, 8, 8, 8, 8, 8, 8);

0 commit comments

Comments
 (0)