[libc-commits] [libc] f76fb7d - [libc] Add fma to the C standard spec.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Tue Apr 20 23:02:54 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-04-21T06:00:35Z
New Revision: f76fb7d4203324bdd06a04b190b654a2348fbe17

URL: https://github.com/llvm/llvm-project/commit/f76fb7d4203324bdd06a04b190b654a2348fbe17
DIFF: https://github.com/llvm/llvm-project/commit/f76fb7d4203324bdd06a04b190b654a2348fbe17.diff

LOG: [libc] Add fma to the C standard spec.

Added: 
    

Modified: 
    libc/spec/stdc.td

Removed: 
    


################################################################################
diff  --git a/libc/spec/stdc.td b/libc/spec/stdc.td
index 2b3602b2e67cc..f771ad3249e51 100644
--- a/libc/spec/stdc.td
+++ b/libc/spec/stdc.td
@@ -362,6 +362,7 @@ def StdC : StandardSpec<"stdc"> {
           FunctionSpec<"fmaxf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>,
           FunctionSpec<"fmaxl", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>, ArgSpec<LongDoubleType>]>,
 
+          FunctionSpec<"fma", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<DoubleType>, ArgSpec<DoubleType>]>,
           FunctionSpec<"fmaf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>, ArgSpec<FloatType>]>,
 
           FunctionSpec<"frexp", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<IntPtr>]>,


        


More information about the libc-commits mailing list