From 5996176b88b4521ff9f14b334b680df29e8be790 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Thu, 9 Oct 2025 02:50:42 +0000 Subject: [PATCH] Fix alignment bug in avx pcast --- Eigen/src/Core/arch/AVX/TypeCasting.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/AVX/TypeCasting.h b/Eigen/src/Core/arch/AVX/TypeCasting.h index 5b73ffe86..767e2d554 100644 --- a/Eigen/src/Core/arch/AVX/TypeCasting.h +++ b/Eigen/src/Core/arch/AVX/TypeCasting.h @@ -240,8 +240,8 @@ EIGEN_STRONG_INLINE Packet4d pcast(const Packet4l& a) { #if defined(EIGEN_VECTORIZE_AVX512DQ) && defined(EIGEN_VECTORIZE_AVS512VL) return _mm256_cvtepi64_pd(a); #else - EIGEN_ALIGN16 int64_t aux[4]; - pstore(aux, a); + int64_t aux[4]; + pstoreu(aux, a); return _mm256_set_pd(static_cast(aux[3]), static_cast(aux[2]), static_cast(aux[1]), static_cast(aux[0])); #endif