[all-commits] [llvm/llvm-project] 5ef412: [Offload][Conformance] Add exhaustive tests for ha...

Leandro Lacerda via All-commits all-commits at lists.llvm.org
Sun Aug 24 07:42:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ef4120b6447055c884cee81d8f8bf67e3f73d60
      https://github.com/llvm/llvm-project/commit/5ef4120b6447055c884cee81d8f8bf67e3f73d60
  Author: Leandro Lacerda <leandrolcampos at yahoo.com.br>
  Date:   2025-08-24 (Sun, 24 Aug 2025)

  Changed paths:
    M offload/unittests/Conformance/device_code/DeviceAPIs.hpp
    M offload/unittests/Conformance/device_code/HIPMath.cpp
    M offload/unittests/Conformance/device_code/LLVMLibm.cpp
    M offload/unittests/Conformance/tests/AcosTest.cpp
    A offload/unittests/Conformance/tests/Acosf16Test.cpp
    M offload/unittests/Conformance/tests/AcosfTest.cpp
    A offload/unittests/Conformance/tests/Acoshf16Test.cpp
    A offload/unittests/Conformance/tests/Acospif16Test.cpp
    M offload/unittests/Conformance/tests/AsinTest.cpp
    A offload/unittests/Conformance/tests/Asinf16Test.cpp
    M offload/unittests/Conformance/tests/AsinfTest.cpp
    A offload/unittests/Conformance/tests/Asinhf16Test.cpp
    A offload/unittests/Conformance/tests/Atanf16Test.cpp
    A offload/unittests/Conformance/tests/Atanhf16Test.cpp
    M offload/unittests/Conformance/tests/CMakeLists.txt
    A offload/unittests/Conformance/tests/Cosf16Test.cpp
    A offload/unittests/Conformance/tests/Coshf16Test.cpp
    A offload/unittests/Conformance/tests/Cospif16Test.cpp
    A offload/unittests/Conformance/tests/Exp10f16Test.cpp
    A offload/unittests/Conformance/tests/Exp2f16Test.cpp
    A offload/unittests/Conformance/tests/Expf16Test.cpp
    A offload/unittests/Conformance/tests/Expm1f16Test.cpp
    A offload/unittests/Conformance/tests/Log10f16Test.cpp
    M offload/unittests/Conformance/tests/Log1pTest.cpp
    A offload/unittests/Conformance/tests/Log2f16Test.cpp
    A offload/unittests/Conformance/tests/Logf16Test.cpp
    A offload/unittests/Conformance/tests/Sinf16Test.cpp
    A offload/unittests/Conformance/tests/Sinhf16Test.cpp
    A offload/unittests/Conformance/tests/Sinpif16Test.cpp
    A offload/unittests/Conformance/tests/Tanf16Test.cpp
    A offload/unittests/Conformance/tests/Tanhf16Test.cpp
    A offload/unittests/Conformance/tests/Tanpif16Test.cpp

  Log Message:
  -----------
  [Offload][Conformance] Add exhaustive tests for half-precision math functions (#155112)

This patch adds a set of exhaustive tests for half-precision math.

The functions included in this set were selected based on the following
criteria:
- An implementation exists in `libc/src/math/generic` (i.e., it is not
just a wrapper around a compiler built-in).
- The corresponding LLVM CPU libm implementation is correctly rounded.
- The function is listed in Table 69 of the OpenCL C Specification
v3.0.19.

This patch also fixes the testing range of the following functions:
`acos`, `acosf`, `asin`, `asinf`, and `log1p`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list