48 changes: 48 additions & 0 deletions libc/test/src/math/smoke/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3643,6 +3643,42 @@ add_fp_unittest(
libc.src.math.totalorderf16
)

add_fp_unittest(
totalordermag_test
SUITE
libc-math-smoke-tests
SRCS
totalordermag_test.cpp
HDRS
TotalOrderMagTest.h
DEPENDS
libc.src.math.totalordermag
)

add_fp_unittest(
totalordermagf_test
SUITE
libc-math-smoke-tests
SRCS
totalordermagf_test.cpp
HDRS
TotalOrderMagTest.h
DEPENDS
libc.src.math.totalordermagf
)

add_fp_unittest(
totalordermagl_test
SUITE
libc-math-smoke-tests
SRCS
totalordermagl_test.cpp
HDRS
TotalOrderMagTest.h
DEPENDS
libc.src.math.totalordermagl
)

add_fp_unittest(
totalordermagf16_test
SUITE
Expand All @@ -3655,6 +3691,18 @@ add_fp_unittest(
libc.src.math.totalordermagf16
)

add_fp_unittest(
totalordermagf128_test
SUITE
libc-math-smoke-tests
SRCS
totalordermagf128_test.cpp
HDRS
TotalOrderMagTest.h
DEPENDS
libc.src.math.totalordermagf128
)

add_fp_unittest(
getpayloadf16_test
SUITE
Expand Down
13 changes: 13 additions & 0 deletions libc/test/src/math/smoke/totalordermag_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//===-- Unittests for totalordermag ---------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "TotalOrderMagTest.h"

#include "src/math/totalordermag.h"

LIST_TOTALORDERMAG_TESTS(double, LIBC_NAMESPACE::totalordermag)
13 changes: 13 additions & 0 deletions libc/test/src/math/smoke/totalordermagf128_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//===-- Unittests for totalordermagf128 -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "TotalOrderMagTest.h"

#include "src/math/totalordermagf128.h"

LIST_TOTALORDERMAG_TESTS(float128, LIBC_NAMESPACE::totalordermagf128)
13 changes: 13 additions & 0 deletions libc/test/src/math/smoke/totalordermagf_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//===-- Unittests for totalordermagf --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "TotalOrderMagTest.h"

#include "src/math/totalordermagf.h"

LIST_TOTALORDERMAG_TESTS(float, LIBC_NAMESPACE::totalordermagf)
13 changes: 13 additions & 0 deletions libc/test/src/math/smoke/totalordermagl_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//===-- Unittests for totalordermagl --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "TotalOrderMagTest.h"

#include "src/math/totalordermagl.h"

LIST_TOTALORDERMAG_TESTS(long double, LIBC_NAMESPACE::totalordermagl)