[libc-commits] [libc] [libc][math][c23] Temporarily disable float16 on 32-bit Arm (PR #95027)

via libc-commits libc-commits at lists.llvm.org
Mon Jun 10 12:27:07 PDT 2024


https://github.com/overmighty created https://github.com/llvm/llvm-project/pull/95027

See Buildbot failure: https://lab.llvm.org/buildbot/#/builders/229/builds/27009.

>From e8612693415864e0dc9c1510fe7c76d1ef6ab6c6 Mon Sep 17 00:00:00 2001
From: OverMighty <its.overmighty at gmail.com>
Date: Mon, 10 Jun 2024 21:24:33 +0200
Subject: [PATCH] [libc][math][c23] Temporarily disable float16 on 32-bit Arm

---
 libc/include/llvm-libc-macros/float16-macros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/include/llvm-libc-macros/float16-macros.h b/libc/include/llvm-libc-macros/float16-macros.h
index 3f819ad53df71..e7d8d93bca1b6 100644
--- a/libc/include/llvm-libc-macros/float16-macros.h
+++ b/libc/include/llvm-libc-macros/float16-macros.h
@@ -11,7 +11,7 @@
 
 #if defined(__FLT16_MANT_DIG__) &&                                             \
     (!defined(__GNUC__) || __GNUC__ >= 13 || defined(__clang__)) &&            \
-    !defined(__riscv)
+    !defined(__arm__) && !defined(_M_ARM) && !defined(__riscv)
 #define LIBC_TYPES_HAS_FLOAT16
 #endif
 



More information about the libc-commits mailing list