CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
452 lines
16 KiB
C
452 lines
16 KiB
C
/*===----------- avxvnniint16intrin.h - AVXVNNIINT16 intrinsics-------------===
|
|
*
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*
|
|
*===-----------------------------------------------------------------------===
|
|
*/
|
|
|
|
#ifndef __IMMINTRIN_H
|
|
#error \
|
|
"Never use <avxvnniint16intrin.h> directly; include <immintrin.h> instead."
|
|
#endif // __IMMINTRIN_H
|
|
|
|
#ifndef __AVXVNNIINT16INTRIN_H
|
|
#define __AVXVNNIINT16INTRIN_H
|
|
|
|
/// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
|
|
/// corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W, and store the packed 32-bit
|
|
/// results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m128i _mm_dpwsud_epi32(__m128i __W, __m128i __A, __m128i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWSUD instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 128-bit vector of [4 x int].
|
|
/// \param __A
|
|
/// A 128-bit vector of [8 x short].
|
|
/// \param __B
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \returns
|
|
/// A 128-bit vector of [4 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 3
|
|
/// tmp1.dword := SignExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// SignExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := __W.dword[j] + tmp1 + tmp2
|
|
/// ENDFOR
|
|
/// dst[MAX:128] := 0
|
|
/// \endcode
|
|
#define _mm_dpwsud_epi32(__W, __A, __B) \
|
|
((__m128i)__builtin_ia32_vpdpwsud128((__v4si)(__W), (__v8hi)(__A), \
|
|
(__v8hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
|
|
/// corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W, and store the packed 32-bit
|
|
/// results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m256i _mm256_dpwsud_epi32(__m256i __W, __m256i __A, __m256i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWSUD instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 256-bit vector of [8 x int].
|
|
/// \param __A
|
|
/// A 256-bit vector of [16 x short].
|
|
/// \param __B
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \returns
|
|
/// A 256-bit vector of [8 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 7
|
|
/// tmp1.dword := SignExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// SignExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := __W.dword[j] + tmp1 + tmp2
|
|
/// ENDFOR
|
|
/// dst[MAX:256] := 0
|
|
/// \endcode
|
|
#define _mm256_dpwsud_epi32(__W, __A, __B) \
|
|
((__m256i)__builtin_ia32_vpdpwsud256((__v8si)(__W), (__v16hi)(__A), \
|
|
(__v16hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
|
|
/// corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W with signed saturation, and store
|
|
/// the packed 32-bit results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m128i _mm_dpwsuds_epi32(__m128i __W, __m128i __A, __m128i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWSUDS instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 128-bit vector of [4 x int].
|
|
/// \param __A
|
|
/// A 128-bit vector of [8 x short].
|
|
/// \param __B
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \returns
|
|
/// A 128-bit vector of [4 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 3
|
|
/// tmp1.dword := SignExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// SignExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := SIGNED_DWORD_SATURATE(__W.dword[j] + tmp1 + tmp2)
|
|
/// ENDFOR
|
|
/// dst[MAX:128] := 0
|
|
/// \endcode
|
|
/// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
|
|
#define _mm_dpwsuds_epi32(__W, __A, __B) \
|
|
((__m128i)__builtin_ia32_vpdpwsuds128((__v4si)(__W), (__v8hi)(__A), \
|
|
(__v8hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
|
|
/// corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W with signed saturation, and store
|
|
/// the packed 32-bit results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m256i _mm256_dpwsuds_epi32(__m256i __W, __m256i __A, __m256i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWSUDS instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 256-bit vector of [8 x int].
|
|
/// \param __A
|
|
/// A 256-bit vector of [16 x short].
|
|
/// \param __B
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \returns
|
|
/// A 256-bit vector of [8 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 7
|
|
/// tmp1.dword := SignExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// SignExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := SIGNED_DWORD_SATURATE(__W.dword[j] + tmp1 + tmp2)
|
|
/// ENDFOR
|
|
/// dst[MAX:256] := 0
|
|
/// \endcode
|
|
#define _mm256_dpwsuds_epi32(__W, __A, __B) \
|
|
((__m256i)__builtin_ia32_vpdpwsuds256((__v8si)(__W), (__v16hi)(__A), \
|
|
(__v16hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding signed 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W, and store the packed 32-bit
|
|
/// results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m128i _mm_dpbusd_epi32(__m128i __W, __m128i __A, __m128i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUSD instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 128-bit vector of [4 x int].
|
|
/// \param __A
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \param __B
|
|
/// A 128-bit vector of [8 x short].
|
|
/// \returns
|
|
/// A 128-bit vector of [4 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 3
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := __W.dword[j] + tmp1 + tmp2
|
|
/// ENDFOR
|
|
/// dst[MAX:128] := 0
|
|
/// \endcode
|
|
#define _mm_dpwusd_epi32(__W, __A, __B) \
|
|
((__m128i)__builtin_ia32_vpdpwusd128((__v4si)(__W), (__v8hu)(__A), \
|
|
(__v8hi)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding signed 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W, and store the packed 32-bit
|
|
/// results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m256i _mm256_dpwusd_epi32(__m256i __W, __m256i __A, __m256i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUSD instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 256-bit vector of [8 x int].
|
|
/// \param __A
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \param __B
|
|
/// A 256-bit vector of [16 x short].
|
|
/// \returns
|
|
/// A 256-bit vector of [8 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 7
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := __W.dword[j] + tmp1 + tmp2
|
|
/// ENDFOR
|
|
/// dst[MAX:256] := 0
|
|
/// \endcode
|
|
#define _mm256_dpwusd_epi32(__W, __A, __B) \
|
|
((__m256i)__builtin_ia32_vpdpwusd256((__v8si)(__W), (__v16hu)(__A), \
|
|
(__v16hi)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding signed 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W with signed saturation, and
|
|
/// store the packed 32-bit results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m128i _mm_dpwusds_epi32(__m128i __W, __m128i __A, __m128i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUSDS instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 128-bit vector of [4 x int].
|
|
/// \param __A
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \param __B
|
|
/// A 128-bit vector of [8 x short].
|
|
/// \returns
|
|
/// A 128-bit vector of [4 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 3
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := SIGNED_DWORD_SATURATE(__W.dword[j] + tmp1 + tmp2)
|
|
/// ENDFOR
|
|
/// dst[MAX:128] := 0
|
|
/// \endcode
|
|
#define _mm_dpwusds_epi32(__W, __A, __B) \
|
|
((__m128i)__builtin_ia32_vpdpwusds128((__v4si)(__W), (__v8hu)(__A), \
|
|
(__v8hi)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding signed 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W with signed saturation, and
|
|
/// store the packed 32-bit results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m256i _mm256_dpwsuds_epi32(__m256i __W, __m256i __A, __m256i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUSDS instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 256-bit vector of [8 x int].
|
|
/// \param __A
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \param __B
|
|
/// A 256-bit vector of [16 x short].
|
|
/// \returns
|
|
/// A 256-bit vector of [8 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 7
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := SIGNED_DWORD_SATURATE(__W.dword[j] + tmp1 + tmp2)
|
|
/// ENDFOR
|
|
/// dst[MAX:256] := 0
|
|
/// \endcode
|
|
#define _mm256_dpwusds_epi32(__W, __A, __B) \
|
|
((__m256i)__builtin_ia32_vpdpwusds256((__v8si)(__W), (__v16hu)(__A), \
|
|
(__v16hi)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W, and store the packed 32-bit
|
|
/// results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m128i _mm_dpwuud_epi32(__m128i __W, __m128i __A, __m128i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUUD instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 128-bit vector of [4 x int].
|
|
/// \param __A
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \param __B
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \returns
|
|
/// A 128-bit vector of [4 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 3
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := __W.dword[j] + tmp1 + tmp2
|
|
/// ENDFOR
|
|
/// dst[MAX:128] := 0
|
|
/// \endcode
|
|
#define _mm_dpwuud_epi32(__W, __A, __B) \
|
|
((__m128i)__builtin_ia32_vpdpwuud128((__v4si)(__W), (__v8hu)(__A), \
|
|
(__v8hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W, and store the packed 32-bit
|
|
/// results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m256i _mm256_dpwuud_epi32(__m256i __W, __m256i __A, __m256i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUUD instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 256-bit vector of [8 x int].
|
|
/// \param __A
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \param __B
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \returns
|
|
/// A 256-bit vector of [8 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 7
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := __W.dword[j] + tmp1 + tmp2
|
|
/// ENDFOR
|
|
/// dst[MAX:256] := 0
|
|
/// \endcode
|
|
#define _mm256_dpwuud_epi32(__W, __A, __B) \
|
|
((__m256i)__builtin_ia32_vpdpwuud256((__v8si)(__W), (__v16hu)(__A), \
|
|
(__v16hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W with signed saturation, and store
|
|
/// the packed 32-bit results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m128i _mm_dpwsuds_epi32(__m128i __W, __m128i __A, __m128i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUUDS instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 128-bit vector of [4 x int].
|
|
/// \param __A
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \param __B
|
|
/// A 128-bit vector of [8 x unsigned short].
|
|
/// \returns
|
|
/// A 128-bit vector of [4 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 3
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := UNSIGNED_DWORD_SATURATE(__W.dword[j] + tmp1 + tmp2)
|
|
/// ENDFOR
|
|
/// dst[MAX:128] := 0
|
|
/// \endcode
|
|
#define _mm_dpwuuds_epi32(__W, __A, __B) \
|
|
((__m128i)__builtin_ia32_vpdpwuuds128((__v4si)(__W), (__v8hu)(__A), \
|
|
(__v8hu)(__B)))
|
|
|
|
/// Multiply groups of 2 adjacent pairs of unsigned 16-bit integers in \a __A
|
|
/// with corresponding unsigned 16-bit integers in \a __B, producing 2
|
|
/// intermediate signed 16-bit results. Sum these 2 results with the
|
|
/// corresponding 32-bit integer in \a __W with signed saturation, and store
|
|
/// the packed 32-bit results in \a dst.
|
|
///
|
|
/// \headerfile <immintrin.h>
|
|
///
|
|
/// \code
|
|
/// __m256i _mm256_dpwuuds_epi32(__m256i __W, __m256i __A, __m256i __B)
|
|
/// \endcode
|
|
///
|
|
/// This intrinsic corresponds to the \c VPDPWUUDS instruction.
|
|
///
|
|
/// \param __W
|
|
/// A 256-bit vector of [8 x int].
|
|
/// \param __A
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \param __B
|
|
/// A 256-bit vector of [16 x unsigned short].
|
|
/// \returns
|
|
/// A 256-bit vector of [8 x int].
|
|
///
|
|
/// \code{.operation}
|
|
/// FOR j := 0 to 7
|
|
/// tmp1.dword := ZeroExtend32(__A.word[2*j]) * ZeroExtend32(__B.word[2*j])
|
|
/// tmp2.dword :=
|
|
/// ZeroExtend32(__A.word[2*j+1]) * ZeroExtend32(__B.word[2*j+1])
|
|
/// dst.dword[j] := UNSIGNED_DWORD_SATURATE(__W.dword[j] + tmp1 + tmp2)
|
|
/// ENDFOR
|
|
/// dst[MAX:256] := 0
|
|
/// \endcode
|
|
#define _mm256_dpwuuds_epi32(__W, __A, __B) \
|
|
((__m256i)__builtin_ia32_vpdpwuuds256((__v8si)(__W), (__v16hu)(__A), \
|
|
(__v16hu)(__B)))
|
|
|
|
#endif // __AVXVNNIINT16INTRIN_H
|