diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -39,6 +39,7 @@ list(APPEND compile_options "-Wthread-safety") endif() if(ADD_FMA_FLAG) + list(APPEND compile_options "-mavx2") list(APPEND compile_options "-mfma") endif() if(ADD_SSE4_2_FLAG) diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt --- a/libc/test/src/math/CMakeLists.txt +++ b/libc/test/src/math/CMakeLists.txt @@ -1317,24 +1317,22 @@ libc.src.__support.FPUtil.fp_bits ) -# TODO: Enable log10_test after #60282 is addressed. It is disabled for now -# as it is failing on the bots. -#add_fp_unittest( -# log10_test -# NEED_MPFR -# SUITE -# libc_math_unittests -# SRCS -# log10_test.cpp -# DEPENDS -# libc.include.errno -# libc.src.errno.errno -# libc.include.math -# libc.src.math.log10 -# libc.src.__support.FPUtil.fp_bits -# FLAGS -# FMA_OPT__ONLY -#) +add_fp_unittest( + log10_test + NEED_MPFR + SUITE + libc_math_unittests + SRCS + log10_test.cpp + DEPENDS + libc.include.errno + libc.src.errno.errno + libc.include.math + libc.src.math.log10 + libc.src.__support.FPUtil.fp_bits + FLAGS + FMA_OPT__ONLY +) add_fp_unittest( log10f_test