From 129e003cdf5d67317b1b75cf2b5172cb28b5744f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Mon, 26 Jun 2023 18:39:42 +0000 Subject: [PATCH] Disable FP16 arithmetic for arm32. (cherry picked from commit 7465b7651edfb58322557179658853243eb96372) --- Eigen/src/Core/util/Macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 5dd3bb450..eb88e5f1d 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -574,7 +574,7 @@ /// \internal EIGEN_HAS_ARM64_FP16_VECTOR_ARITHMETIC set to 1 if the architecture /// supports Neon vector intrinsics for fp16. -#if EIGEN_ARCH_ARM_OR_ARM64 +#if EIGEN_ARCH_ARM64 #ifndef EIGEN_HAS_ARM64_FP16_VECTOR_ARITHMETIC // Clang only supports FP16 on aarch64, and not all intrinsics are available // on A32 anyways even in GCC (e.g. vdiv_f16, vsqrt_f16). @@ -588,7 +588,7 @@ /// \internal EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC set to 1 if the architecture /// supports Neon scalar intrinsics for fp16. -#if EIGEN_ARCH_ARM_OR_ARM64 +#if EIGEN_ARCH_ARM64 #ifndef EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC // Clang only supports FP16 on aarch64, and not all intrinsics are available // on A32 anyways, even in GCC (e.g. vceqh_f16).