From daa0b70a656d3c03f1a518c06ac0845df654b1e4 Mon Sep 17 00:00:00 2001 From: Kevin Leonardic Date: Mon, 3 Jul 2023 13:44:20 +0200 Subject: [PATCH] Fix argument for _mm256_cvtps_ph imm parameter (cherry picked from commit d4b05454a7b33139ce6636584550780ff15af6ed) --- Eigen/src/Core/arch/AVX/PacketMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/AVX/PacketMath.h b/Eigen/src/Core/arch/AVX/PacketMath.h index 5be14ba11..24e01c46f 100644 --- a/Eigen/src/Core/arch/AVX/PacketMath.h +++ b/Eigen/src/Core/arch/AVX/PacketMath.h @@ -1020,7 +1020,7 @@ EIGEN_STRONG_INLINE Packet8f half2float(const Packet8h& a) { EIGEN_STRONG_INLINE Packet8h float2half(const Packet8f& a) { #ifdef EIGEN_HAS_FP16_C - return _mm256_cvtps_ph(a, _MM_FROUND_TO_NEAREST_INT|_MM_FROUND_NO_EXC); + return _mm256_cvtps_ph(a, _MM_FROUND_TO_NEAREST_INT); #else EIGEN_ALIGN32 float aux[8]; pstore(aux, a);