diff options
author | Lijian.Zhang <Lijian.Zhang@arm.com> | 2021-04-14 16:12:28 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-04-15 12:29:40 +0000 |
commit | 7e9d5ff0ef7826f867152c03e51ffdc54838cf79 (patch) | |
tree | d48fe26dd6231c0f776dd21ec355334f28d6adb9 /src/vppinfra/vector_avx2.h | |
parent | fa551b889afadda6dcfcc8093f6949f85284b41d (diff) |
vppinfra: correct intrinsic called by u16x16_from_u8x16
u16x16_from_u8x16() and i16x16_from_i8x16() call intrisics
_mm256_cvtepu8_epi64 and _mm256_cvtepi8_epi64. But they are not seems
doing the right data conversion from the name of the wrappers.
The correct intrinsics been called should be _mm256_cvtepu8_epi16
and _mm256_cvtepi8_epi16.
Type: fix
Change-Id: Id71de6ae1a266a370f11c33a46684202be766c43
Signed-off-by: Lijian Zhang <Lijian.Zhang@arm.com>
Diffstat (limited to 'src/vppinfra/vector_avx2.h')
-rw-r--r-- | src/vppinfra/vector_avx2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vppinfra/vector_avx2.h b/src/vppinfra/vector_avx2.h index 4cd2dc1202e..69752275f08 100644 --- a/src/vppinfra/vector_avx2.h +++ b/src/vppinfra/vector_avx2.h @@ -120,13 +120,13 @@ t##_from_##f (f x) \ _(u16x8, u32x8, epu16_epi32) _(u16x8, u64x4, epu16_epi64) _(u32x4, u64x4, epu32_epi64) -_(u8x16, u16x16, epu8_epi64) +_ (u8x16, u16x16, epu8_epi16) _(u8x16, u32x8, epu8_epi32) _(u8x16, u64x4, epu8_epi64) _(i16x8, i32x8, epi16_epi32) _(i16x8, i64x4, epi16_epi64) _(i32x4, i64x4, epi32_epi64) -_(i8x16, i16x16, epi8_epi64) +_ (i8x16, i16x16, epi8_epi16) _(i8x16, i32x8, epi8_epi32) _(i8x16, i64x4, epi8_epi64) #undef _ |