From 2bcd2223ef41fd605e2bb2c3dec5b6dc58f6e60e Mon Sep 17 00:00:00 2001 From: nihui Date: Sun, 20 Aug 2023 22:16:16 +0800 Subject: [PATCH] make vs2017 happy --- src/layer/x86/convolution_im2col_gemm_int8.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layer/x86/convolution_im2col_gemm_int8.h b/src/layer/x86/convolution_im2col_gemm_int8.h index 2a72bbc7080e..5a45f3ab4c3a 100644 --- a/src/layer/x86/convolution_im2col_gemm_int8.h +++ b/src/layer/x86/convolution_im2col_gemm_int8.h @@ -1042,7 +1042,8 @@ static void convolution_gemm_transB_packed_tile_int8(const Mat& AT_tile, const M __m512i _pA0 = _mm512_cvtepi8_epi16(_pA); _pB = _mm_cvtepi8_epi16(_pB); - __m512i _pBBBB = _mm512_broadcast_i32x4(_pB); + __m256i _pBB = _mm256_inserti128_si256(_mm256_castsi128_si256(_pB), _pB, 1); + __m512i _pBBBB = _mm512_inserti32x8(_mm512_castsi256_si512(_pBB), _pBB, 1); // 0123012301230123 -> 00000000... 11111111... 22222222... 33333333... __m512i _pB0 = _mm512_shuffle_epi32(_pBBBB, _MM_PERM_AAAA);