[libc-commits] [libc] [libc][math][c23] Temporarily disable float16 on RISC-V (PR #94984)

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


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

See Buildbot failures:

- https://lab.llvm.org/buildbot/#/builders/257/builds/13450
- https://lab.llvm.org/buildbot/#/builders/256/builds/14531


>From 5298efb03b43a63d4fde78ef4728c9bb38183126 Mon Sep 17 00:00:00 2001
From: OverMighty <its.overmighty at gmail.com>
Date: Mon, 10 Jun 2024 16:11:11 +0200
Subject: [PATCH] [libc][math][c23] Temporarily disable float16 on RISC-V

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

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



More information about the libc-commits mailing list