[libc-commits] [libc] [libc] Fix feature check for riscv (PR #145169)

Mikhail R. Gadelha via libc-commits libc-commits at lists.llvm.org
Mon Jun 23 06:49:41 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)
----------------
mikhailramalho wrote:

Do you want me to open a PR, or do you prefer to do it yourself?

https://github.com/llvm/llvm-project/pull/145169


More information about the libc-commits mailing list