[libc-commits] [libc] [libc] Update FMA inclusion for ARM targets. (PR #91535)

via libc-commits libc-commits at lists.llvm.org
Wed May 8 13:57:13 PDT 2024


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/91535

None

>From 602f5ccd450fcc4d5fa29d7aceb1875fb326427a Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Wed, 8 May 2024 20:55:05 +0000
Subject: [PATCH] [libc] Update FMA inclusion for ARM targets.

---
 libc/src/__support/FPUtil/FMA.h         | 2 +-
 libc/src/__support/FPUtil/aarch64/FMA.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/src/__support/FPUtil/FMA.h b/libc/src/__support/FPUtil/FMA.h
index 0e1ede02d5cc0..5d677503d2be9 100644
--- a/libc/src/__support/FPUtil/FMA.h
+++ b/libc/src/__support/FPUtil/FMA.h
@@ -16,7 +16,7 @@
 
 #if defined(LIBC_TARGET_ARCH_IS_X86_64)
 #include "x86_64/FMA.h"
-#elif defined(LIBC_TARGET_ARCH_IS_AARCH64)
+#elif defined(LIBC_TARGET_ARCH_IS_ANY_ARM)
 #include "aarch64/FMA.h"
 #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
 #include "riscv/FMA.h"
diff --git a/libc/src/__support/FPUtil/aarch64/FMA.h b/libc/src/__support/FPUtil/aarch64/FMA.h
index 6254a0673ff42..bfcc19f82a340 100644
--- a/libc/src/__support/FPUtil/aarch64/FMA.h
+++ b/libc/src/__support/FPUtil/aarch64/FMA.h
@@ -13,7 +13,7 @@
 #include "src/__support/macros/properties/architectures.h"
 #include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
 
-#if !defined(LIBC_TARGET_ARCH_IS_AARCH64)
+#if !defined(LIBC_TARGET_ARCH_IS_ANY_ARM)
 #error "Invalid include"
 #endif
 



More information about the libc-commits mailing list