[libc-commits] [libc] [libc] Fix feature check for riscv (PR #145169)
Hans Wennborg via libc-commits
libc-commits at lists.llvm.org
Mon Jun 23 06:27:47 PDT 2025
================
@@ -61,15 +61,15 @@
#if defined(__riscv_flen)
// https://github.com/riscv-non-isa/riscv-c-api-doc/blob/main/src/c-api.adoc
-#if (__riscv_flen & 0x10)
+#if (__riscv_arch_test && __riscv_zfhmin)
----------------
zmodem wrote:
I don't have my local build configured for risc-v to confirm, but yes I'm pretty sure that would fix it.
https://github.com/llvm/llvm-project/pull/145169
More information about the libc-commits
mailing list