Fix alignment bug in avx pcast<Packet4l, Packet4d>

(cherry picked from commit 5996176b88)
This commit is contained in:
Charles Schlosser
2025-10-09 02:50:42 +00:00
committed by Antonio Sanchez
parent 92d5da40ac
commit a34d8eee5c

View File

@@ -240,8 +240,8 @@ EIGEN_STRONG_INLINE Packet4d pcast<Packet4l, Packet4d>(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<double>(aux[3]), static_cast<double>(aux[2]), static_cast<double>(aux[1]),
static_cast<double>(aux[0]));
#endif