[libc-commits] [libc] [libc][math][c23] Add f16div{, l, f128} C23 math functions (PR #97054)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 28 06:13:34 PDT 2024
================
@@ -729,7 +729,10 @@ def StdC : StandardSpec<"stdc"> {
GuardedFunctionSpec<"setpayloadsigf16", RetValSpec<IntType>, [ArgSpec<Float16Ptr>, ArgSpec<Float16Type>], "LIBC_TYPES_HAS_FLOAT16">,
+ GuardedFunctionSpec<"f16div", RetValSpec<Float16Type>, [ArgSpec<DoubleType>, ArgSpec<DoubleType>], "LIBC_TYPES_HAS_FLOAT16">,
GuardedFunctionSpec<"f16divf", RetValSpec<Float16Type>, [ArgSpec<FloatType>, ArgSpec<FloatType>], "LIBC_TYPES_HAS_FLOAT16">,
+ GuardedFunctionSpec<"f16divl", RetValSpec<Float16Type>, [ArgSpec<LongDoubleType>, ArgSpec<LongDoubleType>], "LIBC_TYPES_HAS_FLOAT16">,
----------------
overmighty wrote:
Should `f16div` and `f16divl` be moved to llvm_libc_ext.td since they're extensions? We should probably also document somewhere that the `f16*{,l}` functions are LLVM libc extensions.
https://github.com/llvm/llvm-project/pull/97054
More information about the libc-commits
mailing list