[libc-commits] [PATCH] D152410: [libc] Update FMA detection macro for x86-64 targets.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 7 16:55:34 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4ade88a4533e: [libc] Update FMA detection macro for x86-64 targets. (authored by lntue).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152410/new/

https://reviews.llvm.org/D152410

Files:
  libc/src/__support/macros/properties/cpu_features.h


Index: libc/src/__support/macros/properties/cpu_features.h
===================================================================
--- libc/src/__support/macros/properties/cpu_features.h
+++ libc/src/__support/macros/properties/cpu_features.h
@@ -36,7 +36,7 @@
 #define LIBC_TARGET_CPU_HAS_AVX512BW
 #endif
 
-#if defined(__ARM_FEATURE_FMA) || defined(__AVX2__) || defined(__FMA__) ||     \
+#if defined(__ARM_FEATURE_FMA) || (defined(__AVX2__) && defined(__FMA__)) ||   \
     defined(__LIBC_RISCV_USE_FMA)
 #define LIBC_TARGET_CPU_HAS_FMA
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152410.529472.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230607/1608b178/attachment.bin>


More information about the libc-commits mailing list