From bba00a1dc8e828d2b69892e32c4d8f636a89193d Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 30 Jul 2024 17:45:56 +0300 Subject: [PATCH] configure.ac: cast utest to __m128i_u* in avx2 check for _mm_loadu_si128 Fixes avx2 check in configure.ac Fixes: https://github.com/xiph/opus/issues/361. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 78defd6f4..d8aa33af7 100644 --- a/configure.ac +++ b/configure.ac @@ -697,9 +697,10 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[ __m256i mtest2; mtest = _mm256_set1_ps((float)time(NULL)); mtest = _mm256_fmadd_ps(mtest, mtest, mtest); - mtest1 = _mm256_set_m128i(_mm_loadu_si64(utest), _mm_loadu_si64(utest)); + mtest1 = _mm256_set_m128i( + _mm_loadl_epi64((__m128i_u *)utest), _mm_loadl_epi64((__m128i_u *)utest)); mtest2 = - _mm256_cvtepi16_epi32(_mm_loadu_si128(utest)); + _mm256_cvtepi16_epi32(_mm_loadu_si128((__m128i_u *)utest)); return _mm256_extract_epi16(_mm256_xor_si256( _mm256_xor_si256(mtest1, mtest2), _mm256_cvttps_epi32(mtest)), 0); ]]