diff --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt index 58d41a29c716f..f32132a53fc4a 100644 --- a/libc/config/baremetal/aarch64/entrypoints.txt +++ b/libc/config/baremetal/aarch64/entrypoints.txt @@ -770,7 +770,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt index 08d0292760540..1194f52a7f6b1 100644 --- a/libc/config/baremetal/arm/entrypoints.txt +++ b/libc/config/baremetal/arm/entrypoints.txt @@ -773,7 +773,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt index 8afdfc5b469be..c98d68a7a38cb 100644 --- a/libc/config/baremetal/riscv/entrypoints.txt +++ b/libc/config/baremetal/riscv/entrypoints.txt @@ -773,7 +773,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/darwin/aarch64/entrypoints.txt b/libc/config/darwin/aarch64/entrypoints.txt index 25e847a4b92b3..99fe0cdd53f25 100644 --- a/libc/config/darwin/aarch64/entrypoints.txt +++ b/libc/config/darwin/aarch64/entrypoints.txt @@ -603,7 +603,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/darwin/x86_64/entrypoints.txt b/libc/config/darwin/x86_64/entrypoints.txt index 42fe5f6a1f859..30a064ec57bb0 100644 --- a/libc/config/darwin/x86_64/entrypoints.txt +++ b/libc/config/darwin/x86_64/entrypoints.txt @@ -246,7 +246,16 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 + libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt index 23e11aaac0ba8..bbba0c2160e13 100644 --- a/libc/config/gpu/amdgpu/entrypoints.txt +++ b/libc/config/gpu/amdgpu/entrypoints.txt @@ -629,7 +629,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt index 16193add75e0a..8cc97e977de5a 100644 --- a/libc/config/gpu/nvptx/entrypoints.txt +++ b/libc/config/gpu/nvptx/entrypoints.txt @@ -630,7 +630,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt index 47d5120d5d880..c537bd0959750 100644 --- a/libc/config/linux/aarch64/entrypoints.txt +++ b/libc/config/linux/aarch64/entrypoints.txt @@ -857,7 +857,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/linux/arm/entrypoints.txt b/libc/config/linux/arm/entrypoints.txt index 1442e787a0d9c..21c16403d6c01 100644 --- a/libc/config/linux/arm/entrypoints.txt +++ b/libc/config/linux/arm/entrypoints.txt @@ -473,7 +473,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt index 4ce1be3d7e213..7084582789203 100644 --- a/libc/config/linux/riscv/entrypoints.txt +++ b/libc/config/linux/riscv/entrypoints.txt @@ -876,7 +876,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt index 1d24e117d925a..dd57bcd874aab 100644 --- a/libc/config/linux/x86_64/entrypoints.txt +++ b/libc/config/linux/x86_64/entrypoints.txt @@ -908,7 +908,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/config/windows/entrypoints.txt b/libc/config/windows/entrypoints.txt index 21a04a626155a..b2c4bccb6ac8d 100644 --- a/libc/config/windows/entrypoints.txt +++ b/libc/config/windows/entrypoints.txt @@ -319,7 +319,15 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fabsbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 + libc.src.math.fmaximumbf16 + libc.src.math.fmaximum_magbf16 + libc.src.math.fmaximum_mag_numbf16 + libc.src.math.fmaximum_numbf16 libc.src.math.fminbf16 + libc.src.math.fminimumbf16 + libc.src.math.fminimum_magbf16 + libc.src.math.fminimum_mag_numbf16 + libc.src.math.fminimum_numbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 libc.src.math.truncbf16 diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt index fa02a06bd05c0..b6a9c14f98ea3 100644 --- a/libc/src/math/CMakeLists.txt +++ b/libc/src/math/CMakeLists.txt @@ -240,48 +240,56 @@ add_math_entrypoint_object(fmaximumf) add_math_entrypoint_object(fmaximuml) add_math_entrypoint_object(fmaximumf16) add_math_entrypoint_object(fmaximumf128) +add_math_entrypoint_object(fmaximumbf16) add_math_entrypoint_object(fmaximum_num) add_math_entrypoint_object(fmaximum_numf) add_math_entrypoint_object(fmaximum_numl) add_math_entrypoint_object(fmaximum_numf16) add_math_entrypoint_object(fmaximum_numf128) +add_math_entrypoint_object(fmaximum_numbf16) add_math_entrypoint_object(fmaximum_mag) add_math_entrypoint_object(fmaximum_magf) add_math_entrypoint_object(fmaximum_magl) add_math_entrypoint_object(fmaximum_magf16) add_math_entrypoint_object(fmaximum_magf128) +add_math_entrypoint_object(fmaximum_magbf16) add_math_entrypoint_object(fmaximum_mag_num) add_math_entrypoint_object(fmaximum_mag_numf) add_math_entrypoint_object(fmaximum_mag_numl) add_math_entrypoint_object(fmaximum_mag_numf16) add_math_entrypoint_object(fmaximum_mag_numf128) +add_math_entrypoint_object(fmaximum_mag_numbf16) add_math_entrypoint_object(fminimum) add_math_entrypoint_object(fminimumf) add_math_entrypoint_object(fminimuml) add_math_entrypoint_object(fminimumf16) add_math_entrypoint_object(fminimumf128) +add_math_entrypoint_object(fminimumbf16) add_math_entrypoint_object(fminimum_num) add_math_entrypoint_object(fminimum_numf) add_math_entrypoint_object(fminimum_numl) add_math_entrypoint_object(fminimum_numf16) add_math_entrypoint_object(fminimum_numf128) +add_math_entrypoint_object(fminimum_numbf16) add_math_entrypoint_object(fminimum_mag) add_math_entrypoint_object(fminimum_magf) add_math_entrypoint_object(fminimum_magl) add_math_entrypoint_object(fminimum_magf16) add_math_entrypoint_object(fminimum_magf128) +add_math_entrypoint_object(fminimum_magbf16) add_math_entrypoint_object(fminimum_mag_num) add_math_entrypoint_object(fminimum_mag_numf) add_math_entrypoint_object(fminimum_mag_numl) add_math_entrypoint_object(fminimum_mag_numf16) add_math_entrypoint_object(fminimum_mag_numf128) +add_math_entrypoint_object(fminimum_mag_numbf16) add_math_entrypoint_object(fmul) add_math_entrypoint_object(fmull) diff --git a/libc/src/math/fmaximum_mag_numbf16.h b/libc/src/math/fmaximum_mag_numbf16.h new file mode 100644 index 0000000000000..766352595e4f2 --- /dev/null +++ b/libc/src/math/fmaximum_mag_numbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fmaximum_mag_numbf16 ----------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMBF16_H +#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fmaximum_mag_numbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMBF16_H diff --git a/libc/src/math/fmaximum_magbf16.h b/libc/src/math/fmaximum_magbf16.h new file mode 100644 index 0000000000000..ff0ff1a33ff49 --- /dev/null +++ b/libc/src/math/fmaximum_magbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fmaximum_magbf16 --------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGBF16_H +#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fmaximum_magbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGBF16_H diff --git a/libc/src/math/fmaximum_numbf16.h b/libc/src/math/fmaximum_numbf16.h new file mode 100644 index 0000000000000..f23bc525298a1 --- /dev/null +++ b/libc/src/math/fmaximum_numbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fmaximum_numbf16 --------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMBF16_H +#define LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fmaximum_numbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMBF16_H diff --git a/libc/src/math/fmaximumbf16.h b/libc/src/math/fmaximumbf16.h new file mode 100644 index 0000000000000..9842e99d43a20 --- /dev/null +++ b/libc/src/math/fmaximumbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fmaximumbf16 ------------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUMBF16_H +#define LLVM_LIBC_SRC_MATH_FMAXIMUMBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fmaximumbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMAXIMUMBF16_H diff --git a/libc/src/math/fminimum_mag_numbf16.h b/libc/src/math/fminimum_mag_numbf16.h new file mode 100644 index 0000000000000..2773381efbcef --- /dev/null +++ b/libc/src/math/fminimum_mag_numbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fminimum_mag_numbf16 ----------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMBF16_H +#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fminimum_mag_numbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMBF16_H diff --git a/libc/src/math/fminimum_magbf16.h b/libc/src/math/fminimum_magbf16.h new file mode 100644 index 0000000000000..fee5c4c8b1a1c --- /dev/null +++ b/libc/src/math/fminimum_magbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fminimum_magbf16 --------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAGBF16_H +#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAGBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fminimum_magbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAGBF16_H diff --git a/libc/src/math/fminimum_numbf16.h b/libc/src/math/fminimum_numbf16.h new file mode 100644 index 0000000000000..a3fd47403c415 --- /dev/null +++ b/libc/src/math/fminimum_numbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fminimum_numbf16 --------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_NUMBF16_H +#define LLVM_LIBC_SRC_MATH_FMINIMUM_NUMBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fminimum_numbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_NUMBF16_H diff --git a/libc/src/math/fminimumbf16.h b/libc/src/math/fminimumbf16.h new file mode 100644 index 0000000000000..07f1adaa4f075 --- /dev/null +++ b/libc/src/math/fminimumbf16.h @@ -0,0 +1,21 @@ +//===-- Implementation header for fminimumbf16 ------------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SRC_MATH_FMINIMUMBF16_H +#define LLVM_LIBC_SRC_MATH_FMINIMUMBF16_H + +#include "src/__support/macros/config.h" +#include "src/__support/macros/properties/types.h" + +namespace LIBC_NAMESPACE_DECL { + +bfloat16 fminimumbf16(bfloat16 x, bfloat16 y); + +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SRC_MATH_FMINIMUMBF16_H diff --git a/libc/src/math/generic/CMakeLists.txt b/libc/src/math/generic/CMakeLists.txt index 8e1e62f9589b0..d817302428ff5 100644 --- a/libc/src/math/generic/CMakeLists.txt +++ b/libc/src/math/generic/CMakeLists.txt @@ -2471,6 +2471,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fmaximumbf16 + SRCS + fmaximumbf16.cpp + HDRS + ../fmaximumbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fmaximum_num SRCS @@ -2529,6 +2544,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fmaximum_numbf16 + SRCS + fmaximum_numbf16.cpp + HDRS + ../fmaximum_numbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fmaximum_mag SRCS @@ -2587,6 +2617,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fmaximum_magbf16 + SRCS + fmaximum_magbf16.cpp + HDRS + ../fmaximum_magbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fmaximum_mag_num SRCS @@ -2645,6 +2690,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fmaximum_mag_numbf16 + SRCS + fmaximum_mag_numbf16.cpp + HDRS + ../fmaximum_mag_numbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fminimum SRCS @@ -2703,6 +2763,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fminimumbf16 + SRCS + fminimumbf16.cpp + HDRS + ../fminimumbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fminimum_num SRCS @@ -2761,6 +2836,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fminimum_numbf16 + SRCS + fminimum_numbf16.cpp + HDRS + ../fminimum_numbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fminimum_mag SRCS @@ -2819,6 +2909,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fminimum_magbf16 + SRCS + fminimum_magbf16.cpp + HDRS + ../fminimum_magbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fminimum_mag_num SRCS @@ -2877,6 +2982,21 @@ add_entrypoint_object( libc.src.__support.FPUtil.basic_operations ) +add_entrypoint_object( + fminimum_mag_numbf16 + SRCS + fminimum_mag_numbf16.cpp + HDRS + ../fminimum_mag_numbf16.h + DEPENDS + libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.macros.config + libc.src.__support.macros.properties.types + FLAGS + MISC_MATH_BASIC_OPS_OPT +) + add_entrypoint_object( fmul SRCS diff --git a/libc/src/math/generic/fmaximum_mag_numbf16.cpp b/libc/src/math/generic/fmaximum_mag_numbf16.cpp new file mode 100644 index 0000000000000..485e32959b53a --- /dev/null +++ b/libc/src/math/generic/fmaximum_mag_numbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fmaximum_mag_numbf16 function -------------------===// +// +// 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 "src/math/fmaximum_mag_numbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fmaximum_mag_numbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fmaximum_mag_num(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fmaximum_magbf16.cpp b/libc/src/math/generic/fmaximum_magbf16.cpp new file mode 100644 index 0000000000000..0654ed904e549 --- /dev/null +++ b/libc/src/math/generic/fmaximum_magbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fmaximum_magbf16 function -----------------------===// +// +// 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 "src/math/fmaximum_magbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fmaximum_magbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fmaximum_mag(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fmaximum_numbf16.cpp b/libc/src/math/generic/fmaximum_numbf16.cpp new file mode 100644 index 0000000000000..b058d50a7fd6b --- /dev/null +++ b/libc/src/math/generic/fmaximum_numbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fmaximum_numbf16 function -----------------------===// +// +// 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 "src/math/fmaximum_numbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fmaximum_numbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fmaximum_num(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fmaximumbf16.cpp b/libc/src/math/generic/fmaximumbf16.cpp new file mode 100644 index 0000000000000..e10830b4693d5 --- /dev/null +++ b/libc/src/math/generic/fmaximumbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fmaximumbf16 function ---------------------------===// +// +// 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 "src/math/fmaximumbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fmaximumbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fmaximum(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fminimum_mag_numbf16.cpp b/libc/src/math/generic/fminimum_mag_numbf16.cpp new file mode 100644 index 0000000000000..5056fc7e0cad2 --- /dev/null +++ b/libc/src/math/generic/fminimum_mag_numbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fminimum_mag_numbf16 function -------------------===// +// +// 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 "src/math/fminimum_mag_numbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fminimum_mag_numbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fminimum_mag_num(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fminimum_magbf16.cpp b/libc/src/math/generic/fminimum_magbf16.cpp new file mode 100644 index 0000000000000..f61d2d27b4a60 --- /dev/null +++ b/libc/src/math/generic/fminimum_magbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fminimum_magbf16 function -----------------------===// +// +// 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 "src/math/fminimum_magbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fminimum_magbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fminimum_mag(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fminimum_numbf16.cpp b/libc/src/math/generic/fminimum_numbf16.cpp new file mode 100644 index 0000000000000..079a83011ec37 --- /dev/null +++ b/libc/src/math/generic/fminimum_numbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fminimum_numbf16 function -----------------------===// +// +// 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 "src/math/fminimum_numbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fminimum_numbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fminimum_num(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/math/generic/fminimumbf16.cpp b/libc/src/math/generic/fminimumbf16.cpp new file mode 100644 index 0000000000000..da976b96b987c --- /dev/null +++ b/libc/src/math/generic/fminimumbf16.cpp @@ -0,0 +1,21 @@ +//===-- Implementation of fminimumbf16 function ---------------------------===// +// +// 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 "src/math/fminimumbf16.h" +#include "src/__support/FPUtil/BasicOperations.h" +#include "src/__support/FPUtil/bfloat16.h" +#include "src/__support/common.h" +#include "src/__support/macros/config.h" + +namespace LIBC_NAMESPACE_DECL { + +LLVM_LIBC_FUNCTION(bfloat16, fminimumbf16, (bfloat16 x, bfloat16 y)) { + return fputil::fminimum(x, y); +} + +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt index 02bb20559dd4e..a529440752547 100644 --- a/libc/test/src/math/smoke/CMakeLists.txt +++ b/libc/test/src/math/smoke/CMakeLists.txt @@ -2530,6 +2530,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fmaximumbf16_test + SUITE + libc-math-smoke-tests + SRCS + fmaximumbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fmaximumbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fmaximum_num_test SUITE @@ -2586,6 +2601,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fmaximum_numbf16_test + SUITE + libc-math-smoke-tests + SRCS + fmaximum_numbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fmaximum_numbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fmaximum_magf_test SUITE @@ -2661,6 +2691,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fmaximum_magbf16_test + SUITE + libc-math-smoke-tests + SRCS + fmaximum_magbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fmaximum_magbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fmaximum_mag_numf_test SUITE @@ -2731,6 +2776,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fmaximum_mag_numbf16_test + SUITE + libc-math-smoke-tests + SRCS + fmaximum_mag_numbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fmaximum_mag_numbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fminimuml_test SUITE @@ -2801,6 +2861,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fminimumbf16_test + SUITE + libc-math-smoke-tests + SRCS + fminimumbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fminimumbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fminimum_numf_test SUITE @@ -2871,6 +2946,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fminimum_numbf16_test + SUITE + libc-math-smoke-tests + SRCS + fminimum_numf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fminimum_numf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fminimum_magf_test SUITE @@ -2941,6 +3031,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fminimum_magbf16_test + SUITE + libc-math-smoke-tests + SRCS + fminimum_magbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fminimum_magbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fminimum_mag_numf_test SUITE @@ -3011,6 +3116,21 @@ add_fp_unittest( libc.src.__support.FPUtil.fp_bits ) +add_fp_unittest( + fminimum_mag_numbf16_test + SUITE + libc-math-smoke-tests + SRCS + fminimum_mag_numbf16_test.cpp + HDRS + FMaximumTest.h + DEPENDS + libc.src.math.fminimum_mag_numbf16 + libc.src.__support.CPP.algorithm + libc.src.__support.FPUtil.bfloat16 + libc.src.__support.FPUtil.fp_bits +) + add_fp_unittest( fmul_test SUITE diff --git a/libc/test/src/math/smoke/fmaximum_mag_numbf16_test.cpp b/libc/test/src/math/smoke/fmaximum_mag_numbf16_test.cpp new file mode 100644 index 0000000000000..9e435cc365080 --- /dev/null +++ b/libc/test/src/math/smoke/fmaximum_mag_numbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fmaximum_mag_numbf16 --------------------------------===// +// +// 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 "FMaximumMagNumTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fmaximum_mag_numbf16.h" + +LIST_FMAXIMUM_MAG_NUM_TESTS(bfloat16, LIBC_NAMESPACE::fmaximum_mag_numbf16) diff --git a/libc/test/src/math/smoke/fmaximum_magbf16_test.cpp b/libc/test/src/math/smoke/fmaximum_magbf16_test.cpp new file mode 100644 index 0000000000000..22a0bc3380983 --- /dev/null +++ b/libc/test/src/math/smoke/fmaximum_magbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fmaximum_magbf16 ------------------------------------===// +// +// 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 "FMaximumMagTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fmaximum_magbf16.h" + +LIST_FMAXIMUM_MAG_TESTS(bfloat16, LIBC_NAMESPACE::fmaximum_magbf16) diff --git a/libc/test/src/math/smoke/fmaximum_numbf16_test.cpp b/libc/test/src/math/smoke/fmaximum_numbf16_test.cpp new file mode 100644 index 0000000000000..25dbe9f54603e --- /dev/null +++ b/libc/test/src/math/smoke/fmaximum_numbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fmaximum_numbf16 ------------------------------------===// +// +// 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 "FMaximumNumTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fmaximum_numbf16.h" + +LIST_FMAXIMUM_NUM_TESTS(bfloat16, LIBC_NAMESPACE::fmaximum_numbf16) diff --git a/libc/test/src/math/smoke/fmaximumbf16_test.cpp b/libc/test/src/math/smoke/fmaximumbf16_test.cpp new file mode 100644 index 0000000000000..e2cf56bcea64a --- /dev/null +++ b/libc/test/src/math/smoke/fmaximumbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fmaximumbf16 ----------------------------------------===// +// +// 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 "FMaximumTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fmaximumbf16.h" + +LIST_FMAXIMUM_TESTS(bfloat16, LIBC_NAMESPACE::fmaximumbf16) diff --git a/libc/test/src/math/smoke/fminimum_mag_numbf16_test.cpp b/libc/test/src/math/smoke/fminimum_mag_numbf16_test.cpp new file mode 100644 index 0000000000000..ed3d4474a743d --- /dev/null +++ b/libc/test/src/math/smoke/fminimum_mag_numbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fminimum_mag_numbf16 --------------------------------===// +// +// 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 "FMinimumMagNumTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fminimum_mag_numbf16.h" + +LIST_FMINIMUM_MAG_NUM_TESTS(bfloat16, LIBC_NAMESPACE::fminimum_mag_numbf16) diff --git a/libc/test/src/math/smoke/fminimum_magbf16_test.cpp b/libc/test/src/math/smoke/fminimum_magbf16_test.cpp new file mode 100644 index 0000000000000..94251e0f94501 --- /dev/null +++ b/libc/test/src/math/smoke/fminimum_magbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fminimum_magbf16 ------------------------------------===// +// +// 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 "FMinimumMagTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fminimum_magbf16.h" + +LIST_FMINIMUM_MAG_TESTS(bfloat16, LIBC_NAMESPACE::fminimum_magbf16) diff --git a/libc/test/src/math/smoke/fminimum_numbf16_test.cpp b/libc/test/src/math/smoke/fminimum_numbf16_test.cpp new file mode 100644 index 0000000000000..fe8bb51ffc67f --- /dev/null +++ b/libc/test/src/math/smoke/fminimum_numbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fminimum_numbf16 ------------------------------------===// +// +// 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 "FMinimumNumTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fminimum_numbf16.h" + +LIST_FMINIMUM_NUM_TESTS(bfloat16, LIBC_NAMESPACE::fminimum_numbf16) diff --git a/libc/test/src/math/smoke/fminimumbf16_test.cpp b/libc/test/src/math/smoke/fminimumbf16_test.cpp new file mode 100644 index 0000000000000..3667e90745cbb --- /dev/null +++ b/libc/test/src/math/smoke/fminimumbf16_test.cpp @@ -0,0 +1,14 @@ +//===-- Unittests for fminimumbf16 ----------------------------------------===// +// +// 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 "FMinimumTest.h" + +#include "src/__support/FPUtil/bfloat16.h" +#include "src/math/fminimumbf16.h" + +LIST_FMINIMUM_TESTS(bfloat16, LIBC_NAMESPACE::fminimumbf16)