18 changes: 18 additions & 0 deletions libc/test/src/math/smoke/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.fadd
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -168,6 +169,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.faddl
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -183,6 +185,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.faddf128
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand Down Expand Up @@ -424,6 +427,7 @@ add_fp_unittest(
libc.src.errno.errno
libc.hdr.fenv_macros
libc.src.math.dsubl
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -438,6 +442,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.dsubf128
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand Down Expand Up @@ -4173,6 +4178,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16add
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4187,6 +4193,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16addf
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4201,6 +4208,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16addl
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4215,6 +4223,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16addf128
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4229,6 +4238,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16sub
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4243,6 +4253,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16subf
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4257,6 +4268,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16subl
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4271,6 +4283,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.f16subf128
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand Down Expand Up @@ -4552,6 +4565,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.fsub
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4566,6 +4580,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.fsubl
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4580,6 +4595,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.fsubf128
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand Down Expand Up @@ -4753,6 +4769,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.daddl
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand All @@ -4767,6 +4784,7 @@ add_fp_unittest(
libc.hdr.errno_macros
libc.hdr.fenv_macros
libc.src.math.daddf128
libc.src.__support.macros.properties.os
)

add_fp_unittest(
Expand Down
3 changes: 3 additions & 0 deletions libc/test/src/math/smoke/SubTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "hdr/errno_macros.h"
#include "hdr/fenv_macros.h"
#include "src/__support/macros/properties/os.h"
#include "test/UnitTest/FEnvSafeTest.h"
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
Expand Down Expand Up @@ -52,6 +53,7 @@ class SubTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
}

void test_range_errors(SubFunc func) {
#ifndef LIBC_TARGET_OS_IS_WINDOWS
using namespace LIBC_NAMESPACE::fputil::testing;

if (ForceRoundingMode r(RoundingMode::Nearest); r.success) {
Expand Down Expand Up @@ -123,6 +125,7 @@ class SubTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
FE_UNDERFLOW | FE_INEXACT);
EXPECT_MATH_ERRNO(ERANGE);
}
#endif
}

void test_inexact_results(SubFunc func) {
Expand Down
1 change: 1 addition & 0 deletions libc/test/src/string/memory_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_libc_test(
libc.src.__support.CPP.array
libc.src.__support.CPP.cstddef
libc.src.__support.CPP.span
libc.src.__support.macros.properties.os
libc.src.__support.macros.properties.types
libc.src.__support.macros.sanitizer
libc.src.string.memory_utils.memory_utils
Expand Down
3 changes: 2 additions & 1 deletion libc/test/src/string/memory_utils/op_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "memory_check_utils.h"
#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/os.h"
#include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_INT64
#include "src/string/memory_utils/op_aarch64.h"
#include "src/string/memory_utils/op_builtin.h"
Expand Down Expand Up @@ -294,7 +295,7 @@ TYPED_TEST(LlvmLibcOpTest, Bcmp, BcmpImplementations) {
#endif // LIBC_TARGET_ARCH_IS_X86_64

using MemcmpImplementations = testing::TypeList<
#ifdef LIBC_TARGET_ARCH_IS_X86_64
#if defined(LIBC_TARGET_ARCH_IS_X86_64) && !defined(LIBC_TARGET_OS_IS_WINDOWS)
#ifdef __SSE2__
generic::Memcmp<__m128i>, //
#endif
Expand Down