From a5ae8327734d16ae30c807bcb2cdd48e86f451ad Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 22 Mar 2023 03:21:44 +0000 Subject: [PATCH] Fix reversal of arguments to _mm256_set_m128() in pcast. --- Eigen/src/Core/arch/AVX/TypeCasting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/AVX/TypeCasting.h b/Eigen/src/Core/arch/AVX/TypeCasting.h index 888f51d04..77cf26626 100644 --- a/Eigen/src/Core/arch/AVX/TypeCasting.h +++ b/Eigen/src/Core/arch/AVX/TypeCasting.h @@ -74,7 +74,7 @@ template<> EIGEN_STRONG_INLINE Packet8f pcast(const Packet8i } template<> EIGEN_STRONG_INLINE Packet8f pcast(const Packet4d& a, const Packet4d& b) { - return _mm256_set_m128(_mm256_cvtpd_ps(a), _mm256_cvtpd_ps(b)); + return _mm256_set_m128(_mm256_cvtpd_ps(b), _mm256_cvtpd_ps(a)); } template <>