diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index c491eb11a4601..6850b9c786a23 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -3834,7 +3834,19 @@ libc_math_function(name = "floorf128") libc_math_function(name = "floorf16") -# TODO: Add fma, fmaf, fmal, fmaf128 functions. +libc_math_function( + name = "fma", + additional_deps = [ + ":__support_fputil_fma", + ], +) + +libc_math_function( + name = "fmaf", + additional_deps = [ + ":__support_fputil_fma", + ], +) libc_math_function( name = "fmaf16", diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel index 2bffcdea58478..b213c0f53b694 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel @@ -475,7 +475,15 @@ math_test( hdrs = ["FloorTest.h"], ) -# TODO: Add fma, fmaf, fmal, fmaf128 tests. +math_test( + name = "fma", + hdrs = ["FmaTest.h"], +) + +math_test( + name = "fmaf", + hdrs = ["FmaTest.h"], +) # TODO: Reenable this test once it passes at Google. # math_test(