[libc-commits] [libc] [libc][NFC] Propagate LIBC_CONSTEXPR qualifier for those depending on bitt_cast. (PR #197355)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Tue May 12 21:24:10 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-dbg` running on `libc-aarch64-ubuntu` while building `libc` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/104/builds/48156
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[1480/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.bf16fma_test.__unit__.__build__.dir/bf16fma_test.cpp.o
[1481/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.fabs_test.__unit__.__build__
[1482/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fmul_test.__unit__.__build__.dir/fmul_test.cpp.o
[1483/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.coshf_test.__unit__.__build__.dir/coshf_test.cpp.o
[1484/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.nearbyintbf16_test.__unit__.__build__
[1485/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.bf16fma_test.__unit__.__build__
[1486/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabsf_test.cpp.o
[1487/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.fmul_test.__unit__.__build__
[1488/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.coshf_test.__unit__.__build__
[1489/4255] Running unit test libc.test.src.math.sincos_test.__unit__
FAILED: libc/test/src/math/CMakeFiles/libc.test.src.math.sincos_test.__unit__
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/libc/test/src/math && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/libc/test/src/math/libc.test.src.math.sincos_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN ] LlvmLibcSincosTest.TrickyInputs
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/math/sincos_test.cpp:108: FAILURE
Failed to match cos_x against LIBC_NAMESPACE::testing::mpfr::get_mpfr_matcher<mpfr::Operation::Cos>( INPUTS[i], cos_x, 0 + 0.5, mpfr::RoundingMode::Downward).
Match value not within tolerance value of MPFR result:
Input decimal: 0.00000017881393432617211322801641527197036296570332
Input bits: 0x3E88000000000009 = (S: 0, E: 0x03E8, M: 0x0008000000000009)
Match decimal: 0.99999999999998390176614293523016385734081268310547
Match bits: 0x3FEFFFFFFFFFFF6F = (S: 0, E: 0x03FE, M: 0x000FFFFFFFFFFF6F)
MPFR result: 0.99999999999998401278844539774581789970397949218750
MPFR rounded: 0x3FEFFFFFFFFFFF70 = (S: 0, E: 0x03FE, M: 0x000FFFFFFFFFFF70)
ULP error: 1.00000000000000000000000000000000000000000000000000
[ FAILED ] LlvmLibcSincosTest.TrickyInputs
[ RUN ] LlvmLibcSincosTest.InDoubleRange
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/math/sincos_test.cpp:123: FAILURE
Failed to match sin_x against LIBC_NAMESPACE::testing::mpfr::get_mpfr_matcher<mpfr::Operation::Sin>( x, sin_x, 0 + 0.5, mpfr::RoundingMode::Upward).
Match value not within tolerance value of MPFR result:
Input decimal: 0.01229894254922292602671962669091954012401401996613
Input bits: 0x3F8930302031C1C1 = (S: 0, E: 0x03F8, M: 0x000930302031C1C1)
Match decimal: 0.01229863248705198933152793472345365444198250770569
Match bits: 0x3F893006828A0F02 = (S: 0, E: 0x03F8, M: 0x00093006828A0F02)
MPFR result: 0.01229863248705198586208098276983946561813354492188
MPFR rounded: 0x3F893006828A0F00 = (S: 0, E: 0x03F8, M: 0x00093006828A0F00)
ULP error: 2.00000000000000000000000000000000000000000000000000
[ FAILED ] LlvmLibcSincosTest.InDoubleRange
Ran 2 tests. PASS: 0 FAIL: 2
[1490/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.roundevenl_test.__unit__.__build__.dir/roundevenl_test.cpp.o
[1491/4255] Building CXX object libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.sub_same_type_test.__unit__.__build__.dir/sub_same_type_test.cpp.o
[1492/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.fabsf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__
[1493/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.lroundf_test.__unit__.__build__.dir/lroundf_test.cpp.o
[1494/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fmaxf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fmaxf_test.cpp.o
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1480/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.bf16fma_test.__unit__.__build__.dir/bf16fma_test.cpp.o
[1481/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.fabs_test.__unit__.__build__
[1482/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fmul_test.__unit__.__build__.dir/fmul_test.cpp.o
[1483/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.coshf_test.__unit__.__build__.dir/coshf_test.cpp.o
[1484/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.nearbyintbf16_test.__unit__.__build__
[1485/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.bf16fma_test.__unit__.__build__
[1486/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabsf_test.cpp.o
[1487/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.fmul_test.__unit__.__build__
[1488/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.coshf_test.__unit__.__build__
[1489/4255] Running unit test libc.test.src.math.sincos_test.__unit__
FAILED: libc/test/src/math/CMakeFiles/libc.test.src.math.sincos_test.__unit__
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/libc/test/src/math && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/libc/test/src/math/libc.test.src.math.sincos_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN ] LlvmLibcSincosTest.TrickyInputs
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/math/sincos_test.cpp:108: FAILURE
Failed to match cos_x against LIBC_NAMESPACE::testing::mpfr::get_mpfr_matcher<mpfr::Operation::Cos>( INPUTS[i], cos_x, 0 + 0.5, mpfr::RoundingMode::Downward).
Match value not within tolerance value of MPFR result:
Input decimal: 0.00000017881393432617211322801641527197036296570332
Input bits: 0x3E88000000000009 = (S: 0, E: 0x03E8, M: 0x0008000000000009)
Match decimal: 0.99999999999998390176614293523016385734081268310547
Match bits: 0x3FEFFFFFFFFFFF6F = (S: 0, E: 0x03FE, M: 0x000FFFFFFFFFFF6F)
MPFR result: 0.99999999999998401278844539774581789970397949218750
MPFR rounded: 0x3FEFFFFFFFFFFF70 = (S: 0, E: 0x03FE, M: 0x000FFFFFFFFFFF70)
ULP error: 1.00000000000000000000000000000000000000000000000000
[ FAILED ] LlvmLibcSincosTest.TrickyInputs
[ RUN ] LlvmLibcSincosTest.InDoubleRange
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/math/sincos_test.cpp:123: FAILURE
Failed to match sin_x against LIBC_NAMESPACE::testing::mpfr::get_mpfr_matcher<mpfr::Operation::Sin>( x, sin_x, 0 + 0.5, mpfr::RoundingMode::Upward).
Match value not within tolerance value of MPFR result:
Input decimal: 0.01229894254922292602671962669091954012401401996613
Input bits: 0x3F8930302031C1C1 = (S: 0, E: 0x03F8, M: 0x000930302031C1C1)
Match decimal: 0.01229863248705198933152793472345365444198250770569
Match bits: 0x3F893006828A0F02 = (S: 0, E: 0x03F8, M: 0x00093006828A0F02)
MPFR result: 0.01229863248705198586208098276983946561813354492188
MPFR rounded: 0x3F893006828A0F00 = (S: 0, E: 0x03F8, M: 0x00093006828A0F00)
ULP error: 2.00000000000000000000000000000000000000000000000000
[ FAILED ] LlvmLibcSincosTest.InDoubleRange
Ran 2 tests. PASS: 0 FAIL: 2
[1490/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.roundevenl_test.__unit__.__build__.dir/roundevenl_test.cpp.o
[1491/4255] Building CXX object libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.sub_same_type_test.__unit__.__build__.dir/sub_same_type_test.cpp.o
[1492/4255] Linking CXX executable libc/test/src/math/libc.test.src.math.fabsf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__
[1493/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.lroundf_test.__unit__.__build__.dir/lroundf_test.cpp.o
[1494/4255] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fmaxf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fmaxf_test.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/197355
More information about the libc-commits
mailing list