Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Use cpp::numeric_limits in preference to C23 <limits.h> macros #102665

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

frobtech
Copy link
Contributor

@frobtech frobtech commented Aug 9, 2024

This updates some code to consistently use cpp::numeric_limits,
the src/__support polyfill for std::numeric_limits, rather than
the C <limits.h> macros. This is in keeping with the general
C++-oriented style in libc code, and also sidesteps issues about
the new C23 *_WIDTH macros that the compiler-provided header does
not define outside C23 mode.

Bug: https://issues.fuchsia.dev/358196552

This updates some code to consistently use cpp::numeric_limits,
the src/__support polyfill for std::numeric_limits, rather than
the C <limits.h> macros.  This is in keeping with the general
C++-oriented style in libc code, and also sidesteps issues about
the new C23 *_WIDTH macros that the compiler-provided header does
not define outside C23 mode.

Bug: https://issues.fuchsia.dev/358196552
@frobtech frobtech marked this pull request as ready for review August 9, 2024 19:35
@llvmbot llvmbot added the libc label Aug 9, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 9, 2024

@llvm/pr-subscribers-libc

Author: Roland McGrath (frobtech)

Changes

This updates some code to consistently use cpp::numeric_limits,
the src/__support polyfill for std::numeric_limits, rather than
the C <limits.h> macros. This is in keeping with the general
C++-oriented style in libc code, and also sidesteps issues about
the new C23 *_WIDTH macros that the compiler-provided header does
not define outside C23 mode.

Bug: https://issues.fuchsia.dev/358196552


Full diff: https://github.com/llvm/llvm-project/pull/102665.diff

3 Files Affected:

  • (modified) libc/src/stdio/printf_core/parser.h (+4-3)
  • (modified) libc/test/src/stdbit/stdc_bit_floor_ui_test.cpp (+7-3)
  • (modified) libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp (+6-4)
diff --git a/libc/src/stdio/printf_core/parser.h b/libc/src/stdio/printf_core/parser.h
index 2bb4be0feaa2ac..9a3f19a919744d 100644
--- a/libc/src/stdio/printf_core/parser.h
+++ b/libc/src/stdio/printf_core/parser.h
@@ -11,6 +11,7 @@
 
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/CPP/algorithm.h" // max
+#include "src/__support/CPP/limits.h"
 #include "src/__support/CPP/optional.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/macros/config.h"
@@ -210,11 +211,11 @@ template <typename ArgProvider> class Parser {
         case (LengthModifier::wf):
           if (bw == 0) {
             section.has_conv = false;
-          } else if (bw <= INT_WIDTH) {
+          } else if (bw <= cpp::numeric_limits<int>::digits) {
             WRITE_ARG_VAL_SIMPLEST(section.conv_val_raw, int, conv_index);
-          } else if (bw <= LONG_WIDTH) {
+          } else if (bw <= cpp::numeric_limits<long>::digits) {
             WRITE_ARG_VAL_SIMPLEST(section.conv_val_raw, long, conv_index);
-          } else if (bw <= LLONG_WIDTH) {
+          } else if (bw <= cpp::numeric_limits<long long>::digits) {
             WRITE_ARG_VAL_SIMPLEST(section.conv_val_raw, long long, conv_index);
           } else {
             WRITE_ARG_VAL_SIMPLEST(section.conv_val_raw, intmax_t, conv_index);
diff --git a/libc/test/src/stdbit/stdc_bit_floor_ui_test.cpp b/libc/test/src/stdbit/stdc_bit_floor_ui_test.cpp
index 53790402a9bda9..1e3d933c6d1435 100644
--- a/libc/test/src/stdbit/stdc_bit_floor_ui_test.cpp
+++ b/libc/test/src/stdbit/stdc_bit_floor_ui_test.cpp
@@ -15,7 +15,11 @@ TEST(LlvmLibcStdcBitfloorUiTest, Zero) {
 }
 
 TEST(LlvmLibcStdcBitfloorUiTest, Ones) {
-  for (unsigned i = 0U; i != INT_WIDTH; ++i)
-    EXPECT_EQ(LIBC_NAMESPACE::stdc_bit_floor_ui(UINT_MAX >> i),
-              1U << (UINT_WIDTH - i - 1));
+  for (unsigned i = 0U; i != LIBC_NAMESPACE::cpp::numeric_limits<int>::digits;
+       ++i)
+    EXPECT_EQ(
+        LIBC_NAMESPACE::stdc_bit_floor_ui(
+            LIBC_NAMESPACE::cpp::numeric_limits<unsigned int>::max() >> i),
+        1U << (LIBC_NAMESPACE::cpp::numeric_limits<unsigned int>::digits - i -
+               1));
 }
diff --git a/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp b/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp
index 2bd6bb586d7de4..f1b8363ecc8f73 100644
--- a/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp
+++ b/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp
@@ -12,12 +12,14 @@
 #include <stddef.h>
 
 TEST(LlvmLibcStdcLeadingZerosUiTest, Zero) {
-  EXPECT_EQ(LIBC_NAMESPACE::stdc_leading_zeros_ui(0U),
-            static_cast<unsigned>(INT_WIDTH));
+  EXPECT_EQ(
+      LIBC_NAMESPACE::stdc_leading_zeros_ui(0U),
+      static_cast<unsigned>(LIBC_NAMESPACE::cpp::numeric_limits<int>::digits));
 }
 
 TEST(LlvmLibcStdcLeadingZerosUiTest, OneHot) {
-  for (unsigned i = 0U; i != INT_WIDTH; ++i)
+  for (unsigned i = 0U; i != LIBC_NAMESPACE::cpp::numeric_limits<int>::digits;
+       ++i)
     EXPECT_EQ(LIBC_NAMESPACE::stdc_leading_zeros_ui(1U << i),
-              INT_WIDTH - i - 1);
+              LIBC_NAMESPACE::cpp::numeric_limits<int>::digits - i - 1);
 }

@frobtech frobtech merged commit 2f6a879 into llvm:main Aug 9, 2024
8 of 9 checks passed
@frobtech frobtech deleted the p/libc-width branch August 9, 2024 19:44
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

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/4006

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[970/984] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[971/984] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (2 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (2 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[972/984] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[973/984] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/projects/libc/test/src/stdbit && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[970/984] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[971/984] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (2 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (2 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[972/984] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[973/984] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/projects/libc/test/src/stdbit && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian running on libc-x86_64-debian while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (6 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (7 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (938 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1012/1018] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1013/1018] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (6 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (7 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (938 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1012/1018] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1013/1018] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-dbg running on libc-x86_64-debian while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[ RUN      ] LlvmLibcStrtouint64Test.DecodeInOtherBases
[       OK ] LlvmLibcStrtouint64Test.DecodeInOtherBases (288 ms)
[ RUN      ] LlvmLibcStrtouint64Test.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtouint64Test.CleanBaseSixteenDecode (9 us)
[ RUN      ] LlvmLibcStrtouint64Test.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtouint64Test.MessyBaseSixteenDecode (3 us)
[ RUN      ] LlvmLibcStrtouint64Test.AutomaticBaseSelection
[       OK ] LlvmLibcStrtouint64Test.AutomaticBaseSelection (4 us)
Ran 14 tests.  PASS: 14  FAIL: 0
[1015/1018] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-aarch64-ubuntu-fullbuild-dbg running on libc-aarch64-ubuntu while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[       OK ] LlvmLibcStrtoimaxTest.DecodeInOtherBases (313 ms)
[ RUN      ] LlvmLibcStrtoimaxTest.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtoimaxTest.CleanBaseSixteenDecode (8 us)
[ RUN      ] LlvmLibcStrtoimaxTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoimaxTest.MessyBaseSixteenDecode (2 us)
[ RUN      ] LlvmLibcStrtoimaxTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoimaxTest.AutomaticBaseSelection (3 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[845/846] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[846/846] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcStrtoimaxTest.DecodeInOtherBases (313 ms)
[ RUN      ] LlvmLibcStrtoimaxTest.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtoimaxTest.CleanBaseSixteenDecode (8 us)
[ RUN      ] LlvmLibcStrtoimaxTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoimaxTest.MessyBaseSixteenDecode (2 us)
[ RUN      ] LlvmLibcStrtoimaxTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoimaxTest.AutomaticBaseSelection (3 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[845/846] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[846/846] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-gcc-fullbuild-dbg running on libc-x86_64-debian-fullbuild while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[       OK ] LlvmLibcStrtoumaxTest.CleanBaseSixteenDecode (53 us)
[ RUN      ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode (4 us)
[ RUN      ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection (6 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[1074/1085] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__.dir/stdc_leading_zeros_ui_test.cpp.o
[1075/1085] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__.dir/stdc_bit_floor_ui_test.cpp.o
[1076/1085] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1077/1085] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:15: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcStrtoumaxTest.CleanBaseSixteenDecode (53 us)
[ RUN      ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode (4 us)
[ RUN      ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection (6 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[1074/1085] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__.dir/stdc_leading_zeros_ui_test.cpp.o
[1075/1085] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__.dir/stdc_bit_floor_ui_test.cpp.o
[1076/1085] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1077/1085] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:15: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:23: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-fullbuild-dbg running on libc-x86_64-debian-fullbuild while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[1075/1085] Running unit test libc.test.src.stdio.snprintf_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcSNPrintfTest.CutOff
[       OK ] LlvmLibcSNPrintfTest.CutOff (452 ms)
[ RUN      ] LlvmLibcSNPrintfTest.NoCutOff
[       OK ] LlvmLibcSNPrintfTest.NoCutOff (6 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1076/1085] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1077/1085] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1078/1085] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1075/1085] Running unit test libc.test.src.stdio.snprintf_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcSNPrintfTest.CutOff
[       OK ] LlvmLibcSNPrintfTest.CutOff (452 ms)
[ RUN      ] LlvmLibcSNPrintfTest.NoCutOff
[       OK ] LlvmLibcSNPrintfTest.NoCutOff (6 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1076/1085] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1077/1085] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1078/1085] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-dbg-asan running on libc-x86_64-debian while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[1009/1015] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1010/1015] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (11 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (2 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1011/1015] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1012/1015] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1009/1015] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1010/1015] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (11 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (2 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1011/1015] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1012/1015] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-fullbuild-dbg-asan running on libc-x86_64-debian-fullbuild while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[1073/1081] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1074/1081] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (9 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (3 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1075/1081] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1076/1081] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1073/1081] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1074/1081] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (9 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (3 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1075/1081] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1076/1081] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-riscv64-debian-fullbuild-dbg running on libc-riscv64-debian while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[       OK ] LlvmLibcStdcBitceilUllTest.Ones (20 us)
[ RUN      ] LlvmLibcStdcBitceilUllTest.OneLessThanPowsTwo
[       OK ] LlvmLibcStdcBitceilUllTest.OneLessThanPowsTwo (19 us)
[ RUN      ] LlvmLibcStdcBitceilUllTest.OneMoreThanPowsTwo
[       OK ] LlvmLibcStdcBitceilUllTest.OneMoreThanPowsTwo (19 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[738/988] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__.dir/stdc_bit_floor_ui_test.cpp.o
[739/988] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__.dir/stdc_leading_zeros_ui_test.cpp.o
[740/988] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[741/988] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcStdcBitceilUllTest.Ones (20 us)
[ RUN      ] LlvmLibcStdcBitceilUllTest.OneLessThanPowsTwo
[       OK ] LlvmLibcStdcBitceilUllTest.OneLessThanPowsTwo (19 us)
[ RUN      ] LlvmLibcStdcBitceilUllTest.OneMoreThanPowsTwo
[       OK ] LlvmLibcStdcBitceilUllTest.OneMoreThanPowsTwo (19 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[738/988] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__.dir/stdc_bit_floor_ui_test.cpp.o
[739/988] Building CXX object projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__.dir/stdc_leading_zeros_ui_test.cpp.o
[740/988] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[741/988] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit && /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-dbg-runtimes-build running on libc-x86_64-debian while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[1211/1217] Linking CXX executable libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1212/1217] Linking CXX executable libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1213/1217] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (2 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (3 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1214/1217] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 7 (check-libc) failure: check-libc (failure)
...
[1211/1217] Linking CXX executable libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[1212/1217] Linking CXX executable libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[1213/1217] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (2 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (3 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1214/1217] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/libc/test/src/stdbit && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_19_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_19_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder libc-riscv64-debian-dbg running on libc-riscv64-debian while building libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[948/1139] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[949/1139] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (6 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (14 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[950/1139] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[951/1139] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/stdbit && /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[948/1139] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__.__build__
[949/1139] Running unit test libc.test.src.stdbit.stdc_bit_floor_ui_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Zero
[       OK ] LlvmLibcStdcBitfloorUiTest.Zero (6 us)
[ RUN      ] LlvmLibcStdcBitfloorUiTest.Ones
[       OK ] LlvmLibcStdcBitfloorUiTest.Ones (14 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[950/1139] Linking CXX executable projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[951/1139] Running unit test libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__
FAILED: projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/stdbit/CMakeFiles/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__ 
cd /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/stdbit && /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/stdbit/libc.test.src.stdbit.stdc_leading_zeros_ui_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.Zero
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:17: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(0U)
      Which is: 32
To be equal to: static_cast<unsigned>(__llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits)
      Which is: 31
[  FAILED  ] LlvmLibcStdcLeadingZerosUiTest.Zero
[ RUN      ] LlvmLibcStdcLeadingZerosUiTest.OneHot
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 31
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 30
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 30
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 29
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 29
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 28
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 28
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 27
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 27
To be equal to: __llvm_libc_18_0_0_git::cpp::numeric_limits<int>::digits - i - 1
      Which is: 26
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp:24: FAILURE
      Expected: __llvm_libc_18_0_0_git::stdc_leading_zeros_ui(1U << i)
      Which is: 26

kutemeikito added a commit to kutemeikito/llvm-project that referenced this pull request Aug 10, 2024
* 'main' of https://github.com/llvm/llvm-project: (700 commits)
  [SandboxIR][NFC] SingleLLVMInstructionImpl class (llvm#102687)
  [ThinLTO]Clean up 'import-assume-unique-local' flag. (llvm#102424)
  [nsan] Make #include more conventional
  [SandboxIR][NFC] Use Tracker.emplaceIfTracking()
  [libc]  Moved range_reduction_double ifdef statement (llvm#102659)
  [libc] Fix CFP long double and add tests (llvm#102660)
  [TargetLowering] Handle vector types in expandFixedPointMul (llvm#102635)
  [compiler-rt][NFC] Replace environment variable with %t (llvm#102197)
  [UnitTests] Convert a test to use opaque pointers (llvm#102668)
  [CodeGen][NFCI] Don't re-implement parts of ASTContext::getIntWidth (llvm#101765)
  [SandboxIR] Clean up tracking code with the help of emplaceIfTracking() (llvm#102406)
  [mlir][bazel] remove extra blanks in mlir-tblgen test
  [NVPTX][NFC] Update tests to use bfloat type (llvm#101493)
  [mlir] Add support for parsing nested PassPipelineOptions (llvm#101118)
  [mlir][bazel] add missing td dependency in mlir-tblgen test
  [flang][cuda] Fix lib dependency
  [libc] Clean up remaining use of *_WIDTH macros in printf (llvm#102679)
  [flang][cuda] Convert cuf.alloc for box to fir.alloca in device context (llvm#102662)
  [SandboxIR] Implement the InsertElementInst class (llvm#102404)
  [libc] Fix use of cpp::numeric_limits<...>::digits (llvm#102674)
  [mlir][ODS] Verify type constraints in Types and Attributes (llvm#102326)
  [LTO] enable `ObjCARCContractPass` only on optimized build  (llvm#101114)
  [mlir][ODS] Consistent `cppType` / `cppClassName` usage (llvm#102657)
  [lldb] Move definition of SBSaveCoreOptions dtor out of header (llvm#102539)
  [libc] Use cpp::numeric_limits in preference to C23 <limits.h> macros (llvm#102665)
  [clang] Implement -fptrauth-auth-traps. (llvm#102417)
  [LLVM][rtsan] rtsan transform to preserve CFGAnalyses (llvm#102651)
  Revert "[AMDGPU] Move `AMDGPUAttributorPass` to full LTO post link stage (llvm#102086)"
  [RISCV][GISel] Add missing tests for G_CTLZ/CTTZ instruction selection. NFC
  Return available function types for BindingDecls. (llvm#102196)
  [clang] Wire -fptrauth-returns to "ptrauth-returns" fn attribute. (llvm#102416)
  [RISCV] Remove riscv-experimental-rv64-legal-i32. (llvm#102509)
  [RISCV] Move PseudoVSET(I)VLI expansion to use PseudoInstExpansion. (llvm#102496)
  [NVPTX] support switch statement with brx.idx (reland) (llvm#102550)
  [libc][newhdrgen]sorted function names in yaml (llvm#102544)
  [GlobalIsel] Combine G_ADD and G_SUB with constants (llvm#97771)
  Suppress spurious warnings due to R_RISCV_SET_ULEB128
  [scudo] Separated committed and decommitted entries. (llvm#101409)
  [MIPS] Fix missing ANDI optimization (llvm#97689)
  [Clang] Add env var for nvptx-arch/amdgpu-arch timeout (llvm#102521)
  [asan] Switch allocator to dynamic base address (llvm#98511)
  [AMDGPU] Move `AMDGPUAttributorPass` to full LTO post link stage (llvm#102086)
  [libc][math][c23] Add fadd{l,f128} C23 math functions (llvm#102531)
  [mlir][bazel] revert bazel rule change for DLTITransformOps
  [msan] Support vst{2,3,4}_lane instructions (llvm#101215)
  Revert "[MLIR][DLTI][Transform] Introduce transform.dlti.query (llvm#101561)"
  [X86] pr57673.ll - generate MIR test checks
  [mlir][vector][test] Split tests from vector-transfer-flatten.mlir (llvm#102584)
  [mlir][bazel] add bazel rule for DLTITransformOps
  OpenMPOpt: Remove dead include
  [IR] Add method to GlobalVariable to change type of initializer. (llvm#102553)
  [flang][cuda] Force default allocator in device code (llvm#102238)
  [llvm] Construct SmallVector<SDValue> with ArrayRef (NFC) (llvm#102578)
  [MLIR][DLTI][Transform] Introduce transform.dlti.query (llvm#101561)
  [AMDGPU][AsmParser][NFC] Remove a misleading comment. (llvm#102604)
  [Arm][AArch64][Clang] Respect function's branch protection attributes. (llvm#101978)
  [mlir] Verifier: steal bit to track seen instead of set. (llvm#102626)
  [Clang] Fix Handling of Init Capture with Parameter Packs in LambdaScopeForCallOperatorInstantiationRAII (llvm#100766)
  [X86] Convert truncsat clamping patterns to use SDPatternMatch. NFC.
  [gn] Give two scripts argparse.RawDescriptionHelpFormatter
  [bazel] Add missing dep for the SPIRVToLLVM target
  [Clang] Simplify specifying passes via -Xoffload-linker (llvm#102483)
  [bazel] Port for d45de80
  [SelectionDAG] Use unaligned store/load to move AVX registers onto stack for `insertelement` (llvm#82130)
  [Clang][OMPX] Add the code generation for multi-dim `num_teams` (llvm#101407)
  [ARM] Regenerate big-endian-vmov.ll. NFC
  [AMDGPU][AsmParser][NFCI] All NamedIntOperands to be of the i32 type. (llvm#102616)
  [libc][math][c23] Add totalorderl function. (llvm#102564)
  [mlir][spirv] Support `memref` in `convert-to-spirv` pass (llvm#102534)
  [MLIR][GPU-LLVM] Convert `gpu.func` to `llvm.func` (llvm#101664)
  Fix a unit test input file (llvm#102567)
  [llvm-readobj][COFF] Dump hybrid objects for ARM64X files. (llvm#102245)
  AMDGPU/NewPM: Port SIFixSGPRCopies to new pass manager (llvm#102614)
  [MemoryBuiltins] Simplify getCalledFunction() helper (NFC)
  [AArch64] Add invalid 1 x vscale costs for reductions and reduction-operations. (llvm#102105)
  [MemoryBuiltins] Handle allocator attributes on call-site
  LSV/test/AArch64: add missing lit.local.cfg; fix build (llvm#102607)
  Revert "Enable logf128 constant folding for hosts with 128bit floats (llvm#96287)"
  [RISCV] Add Syntacore SCR5 RV32/64 processors definition (llvm#102285)
  [InstCombine] Remove unnecessary RUN line from test (NFC)
  [flang][OpenMP] Handle multiple ranges in `num_teams` clause (llvm#102535)
  [mlir][vector] Add tests for scalable vectors in one-shot-bufferize.mlir (llvm#102361)
  [mlir][vector] Disable `vector.matrix_multiply` for scalable vectors (llvm#102573)
  [clang] Implement CWG2627 Bit-fields and narrowing conversions (llvm#78112)
  [NFC] Use references to avoid copying (llvm#99863)
  Revert "[mlir][ArmSME] Pattern to swap shape_cast(tranpose) with transpose(shape_cast) (llvm#100731)" (llvm#102457)
  [IRBuilder] Generate nuw GEPs for struct member accesses (llvm#99538)
  [bazel] Port for 9b06e25
  [CodeGen][NewPM] Improve start/stop pass error message CodeGenPassBuilder (llvm#102591)
  [AArch64] Implement TRBMPAM_EL1 system register (llvm#102485)
  [InstCombine] Fixing wrong select folding in vectors with undef elements (llvm#102244)
  [AArch64] Sink operands to fmuladd. (llvm#102297)
  LSV: document hang reported in llvm#37865 (llvm#102479)
  Enable logf128 constant folding for hosts with 128bit floats (llvm#96287)
  [RISCV][clang] Remove bfloat base type in non-zvfbfmin vcreate (llvm#102146)
  [RISCV][clang] Add missing `zvfbfmin` to `vget_v` intrinsic (llvm#102149)
  [mlir][vector] Add mask elimination transform (llvm#99314)
  [Clang][Interp] Fix display of syntactically-invalid note for member function calls (llvm#102170)
  [bazel] Port for 3fffa6d
  [DebugInfo][RemoveDIs] Use iterator-inserters in clang (llvm#102006)
  ...

Signed-off-by: Edwiin Kusuma Jaya <kutemeikito0905@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants