From 23ba2cb5baba7aa3beb56006bcf554fbc8b30e35 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Mon, 2 Oct 2023 07:50:57 +0200 Subject: [PATCH] avx: simde_mm256_shuffle_pd fix for natural vector size < 128 Closes: #926 Co-authored-by: clin99 <34017491+clin99@users.noreply.github.com> --- simde/x86/avx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simde/x86/avx.h b/simde/x86/avx.h index 4bee0d157..06485253d 100644 --- a/simde/x86/avx.h +++ b/simde/x86/avx.h @@ -5136,8 +5136,8 @@ simde_mm256_shuffle_pd (simde__m256d a, simde__m256d b, const int imm8) #elif SIMDE_NATURAL_VECTOR_SIZE_LE(128) #define simde_mm256_shuffle_pd(a, b, imm8) \ simde_mm256_set_m128d( \ - simde_mm_shuffle_pd(simde_mm256_extractf128_pd(a, 1), simde_mm256_extractf128_pd(b, 1), (imm8 >> 0) & 3), \ - simde_mm_shuffle_pd(simde_mm256_extractf128_pd(a, 0), simde_mm256_extractf128_pd(b, 0), (imm8 >> 2) & 3)) + simde_mm_shuffle_pd(simde_mm256_extractf128_pd(a, 1), simde_mm256_extractf128_pd(b, 1), (imm8 >> 2) & 3), \ + simde_mm_shuffle_pd(simde_mm256_extractf128_pd(a, 0), simde_mm256_extractf128_pd(b, 0), (imm8 >> 0) & 3)) #elif defined(SIMDE_SHUFFLE_VECTOR_) #define simde_mm256_shuffle_pd(a, b, imm8) \ SIMDE_SHUFFLE_VECTOR_(64, 32, a, b, \