[libc-commits] [libc] [llvm] [libc][math] Add float-only implementation for sinf / cosf. (PR #161680)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Tue Oct 21 10:50:03 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `libc,utils` at step 10 "Add check check-libc-amdgcn-amd-amdhsa".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/15853

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 10 (Add check check-libc-amdgcn-amd-amdhsa) failure: test (failure)
...
[       OK ] LlvmLibcAddTest.InvalidOperations (20 us)
[ RUN      ] LlvmLibcAddTest.RangeErrors
[       OK ] LlvmLibcAddTest.RangeErrors (30 us)
[ RUN      ] LlvmLibcAddTest.InexactResults
[       OK ] LlvmLibcAddTest.InexactResults (5 us)
[ RUN      ] LlvmLibcAddTest.MixedNormality
[       OK ] LlvmLibcAddTest.MixedNormality (2 us)
Ran 5 tests.  PASS: 5  FAIL: 0
[2548/3299] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.asin_test.__hermetic__.__build__
[2549/3299] Running hermetic test libc.test.src.math.smoke.sinf_test.__hermetic__
FAILED: libc/test/src/math/smoke/libc.test.src.math.smoke.sinf_test.__hermetic__.__cmd__ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/test/src/math/smoke/libc.test.src.math.smoke.sinf_test.__hermetic__.__cmd__ 
cd /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/test/src/math/smoke && /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/amdhsa-loader /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/test/src/math/smoke/libc.test.src.math.smoke.sinf_test.__hermetic__.__build__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSinfTest.SpecialNumbers
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/math/smoke/sinf_test.cpp:29: FAILURE
Failed to match __llvm_libc_22_0_0_git::sinf(-0.0f) against LIBC_NAMESPACE::testing::getMatcher< LIBC_NAMESPACE::testing::TestCond::EQ>(-0.0f).
Expected floating point value: 0x80000000 = (S: 1, E: 0x0000, M: 0x00000000)
Actual floating point value: 0x00000000 = (S: 0, E: 0x0000, M: 0x00000000)
[  FAILED  ] LlvmLibcSinfTest.SpecialNumbers
Ran 1 tests.  PASS: 0  FAIL: 1
[2550/3299] Running hermetic test libc.test.src.math.smoke.totalordermagbf16_test.__hermetic__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcTotalOrderMagTest.XLesserThanY
[       OK ] LlvmLibcTotalOrderMagTest.XLesserThanY (16 us)
[ RUN      ] LlvmLibcTotalOrderMagTest.XGreaterThanY
[       OK ] LlvmLibcTotalOrderMagTest.XGreaterThanY (12 us)
[ RUN      ] LlvmLibcTotalOrderMagTest.XEqualToY
[       OK ] LlvmLibcTotalOrderMagTest.XEqualToY (12 us)
[ RUN      ] LlvmLibcTotalOrderMagTest.SingleNaN
[       OK ] LlvmLibcTotalOrderMagTest.SingleNaN (14 us)
[ RUN      ] LlvmLibcTotalOrderMagTest.NaNSigns
[       OK ] LlvmLibcTotalOrderMagTest.NaNSigns (5 us)
[ RUN      ] LlvmLibcTotalOrderMagTest.QuietVsSignalingNaN
[       OK ] LlvmLibcTotalOrderMagTest.QuietVsSignalingNaN (4 us)
[ RUN      ] LlvmLibcTotalOrderMagTest.NaNPayloads
[       OK ] LlvmLibcTotalOrderMagTest.NaNPayloads (6 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[2551/3299] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.fminimum_mag_num_test.__hermetic__.__build__
[2552/3299] Running hermetic test libc.test.src.math.smoke.sinf16_test.__hermetic__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSinf16Test.SpecialNumbers
[       OK ] LlvmLibcSinf16Test.SpecialNumbers (14 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[2553/3299] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.fminimum_mag_numf16_test.__hermetic__.__build__
[2554/3299] Running hermetic test libc.test.src.math.smoke.sinpif_test.__hermetic__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcSinpifTest.SpecialNumbers
[       OK ] LlvmLibcSinpifTest.SpecialNumbers (14 us)
[ RUN      ] LlvmLibcSinpifTest.Integers

```

</details>

https://github.com/llvm/llvm-project/pull/161680


More information about the libc-commits mailing list