From 3eb5ad0ed0519c379314e07c3fec770f07804ef8 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Mon, 20 May 2019 17:19:20 -0700 Subject: [PATCH] Enable support for F16C with Clang. The required intrinsics were added here: https://reviews.llvm.org/D16177 and are part of LLVM 3.8.0. --- Eigen/src/Core/util/ConfigureVectorization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/ConfigureVectorization.h b/Eigen/src/Core/util/ConfigureVectorization.h index 2f6136ebc..1514975d1 100644 --- a/Eigen/src/Core/util/ConfigureVectorization.h +++ b/Eigen/src/Core/util/ConfigureVectorization.h @@ -372,7 +372,7 @@ #endif #endif -#if defined(__F16C__) && !defined(EIGEN_COMP_CLANG) +#if defined(__F16C__) && (!defined(EIGEN_COMP_CLANG) || EIGEN_COMP_CLANG>=380) // We can use the optimized fp16 to float and float to fp16 conversion routines #define EIGEN_HAS_FP16_C #endif