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

[clang][bytecode] Fix some shift edge cases #119895

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Conversation

tbaederr
Copy link
Contributor

Around shifting negative values.

Around shifting negative values.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Dec 13, 2024
@llvmbot
Copy link
Member

llvmbot commented Dec 13, 2024

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

Changes

Around shifting negative values.


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

3 Files Affected:

  • (modified) clang/lib/AST/ByteCode/Integral.h (+5-2)
  • (modified) clang/lib/AST/ByteCode/Interp.h (+35-33)
  • (modified) clang/test/AST/ByteCode/shifts.cpp (+25-16)
diff --git a/clang/lib/AST/ByteCode/Integral.h b/clang/lib/AST/ByteCode/Integral.h
index 26585799e5eadc..13fdb5369f2b7a 100644
--- a/clang/lib/AST/ByteCode/Integral.h
+++ b/clang/lib/AST/ByteCode/Integral.h
@@ -179,7 +179,10 @@ template <unsigned Bits, bool Signed> class Integral final {
   unsigned countLeadingZeros() const {
     if constexpr (!Signed)
       return llvm::countl_zero<ReprT>(V);
-    llvm_unreachable("Don't call countLeadingZeros() on signed types.");
+    if (isPositive())
+      return llvm::countl_zero<typename AsUnsigned::ReprT>(
+          static_cast<typename AsUnsigned::ReprT>(V));
+    llvm_unreachable("Don't call countLeadingZeros() on negative values.");
   }
 
   Integral truncate(unsigned TruncBits) const {
@@ -210,7 +213,7 @@ template <unsigned Bits, bool Signed> class Integral final {
     return Integral(Value.V);
   }
 
-  static Integral zero() { return from(0); }
+  static Integral zero(unsigned BitWidth = 0) { return from(0); }
 
   template <typename T> static Integral from(T Value, unsigned NumBits) {
     return Integral(Value);
diff --git a/clang/lib/AST/ByteCode/Interp.h b/clang/lib/AST/ByteCode/Interp.h
index cdf05e36304acb..f085f96fdf5391 100644
--- a/clang/lib/AST/ByteCode/Interp.h
+++ b/clang/lib/AST/ByteCode/Interp.h
@@ -2511,50 +2511,52 @@ inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
         S, OpPC, LHS, RHS);
   }
 
-  if constexpr (Dir == ShiftDir::Left) {
-    if (LHS.isNegative() && !S.getLangOpts().CPlusPlus20) {
-      // C++11 [expr.shift]p2: A signed left shift must have a non-negative
-      // operand, and must not overflow the corresponding unsigned type.
-      // C++2a [expr.shift]p2: E1 << E2 is the unique value congruent to
-      // E1 x 2^E2 module 2^N.
-      const SourceInfo &Loc = S.Current->getSource(OpPC);
-      S.CCEDiag(Loc, diag::note_constexpr_lshift_of_negative) << LHS.toAPSInt();
-      if (!S.noteUndefinedBehavior())
-        return false;
-    }
-  }
-
   if (!CheckShift<Dir>(S, OpPC, LHS, RHS, Bits))
     return false;
 
   // Limit the shift amount to Bits - 1. If this happened,
   // it has already been diagnosed by CheckShift() above,
   // but we still need to handle it.
+  // Note that we have to be extra careful here since we're doing the shift in
+  // any case, but we need to adjust the shift amount or the way we do the shift
+  // for the potential error cases.
   typename LT::AsUnsigned R;
+  unsigned MaxShiftAmount = LHS.bitWidth() - 1;
   if constexpr (Dir == ShiftDir::Left) {
-    if (RHS > RT::from(Bits - 1, RHS.bitWidth()))
-      LT::AsUnsigned::shiftLeft(LT::AsUnsigned::from(LHS),
-                                LT::AsUnsigned::from(Bits - 1), Bits, &R);
-    else
+    if (Compare(RHS, RT::from(MaxShiftAmount, RHS.bitWidth())) ==
+        ComparisonCategoryResult::Greater) {
+      if (LHS.isNegative())
+        R = LT::AsUnsigned::zero(LHS.bitWidth());
+      else {
+        RHS = RT::from(LHS.countLeadingZeros(), RHS.bitWidth());
+        LT::AsUnsigned::shiftLeft(LT::AsUnsigned::from(LHS),
+                                  LT::AsUnsigned::from(RHS, Bits), Bits, &R);
+      }
+    } else if (LHS.isNegative()) {
+      if (LHS.isMin()) {
+        R = LT::AsUnsigned::zero(LHS.bitWidth());
+      } else {
+        // If the LHS is negative, perform the cast and invert the result.
+        typename LT::AsUnsigned LHSU = LT::AsUnsigned::from(-LHS);
+        LT::AsUnsigned::shiftLeft(LHSU, LT::AsUnsigned::from(RHS, Bits), Bits,
+                                  &R);
+        R = -R;
+      }
+    } else {
+      // The good case, a simple left shift.
       LT::AsUnsigned::shiftLeft(LT::AsUnsigned::from(LHS),
                                 LT::AsUnsigned::from(RHS, Bits), Bits, &R);
+    }
   } else {
-    if (RHS > RT::from(Bits - 1, RHS.bitWidth()))
-      LT::AsUnsigned::shiftRight(LT::AsUnsigned::from(LHS),
-                                 LT::AsUnsigned::from(Bits - 1), Bits, &R);
-    else
-      LT::AsUnsigned::shiftRight(LT::AsUnsigned::from(LHS),
-                                 LT::AsUnsigned::from(RHS, Bits), Bits, &R);
-  }
-
-  // We did the shift above as unsigned. Restore the sign bit if we need to.
-  if constexpr (Dir == ShiftDir::Right) {
-    if (LHS.isSigned() && LHS.isNegative()) {
-      typename LT::AsUnsigned SignBit;
-      LT::AsUnsigned::shiftLeft(LT::AsUnsigned::from(1, Bits),
-                                LT::AsUnsigned::from(Bits - 1, Bits), Bits,
-                                &SignBit);
-      LT::AsUnsigned::bitOr(R, SignBit, Bits, &R);
+    // Right shift.
+    if (Compare(RHS, RT::from(MaxShiftAmount, RHS.bitWidth())) ==
+        ComparisonCategoryResult::Greater) {
+      R = LT::AsUnsigned::from(-1);
+    } else {
+      // Do the shift on potentially signed LT, then convert to unsigned type.
+      LT A;
+      LT::shiftRight(LHS, LT::from(RHS, Bits), Bits, &A);
+      R = LT::AsUnsigned::from(A);
     }
   }
 
diff --git a/clang/test/AST/ByteCode/shifts.cpp b/clang/test/AST/ByteCode/shifts.cpp
index 0b3383731c6774..493f8b78204259 100644
--- a/clang/test/AST/ByteCode/shifts.cpp
+++ b/clang/test/AST/ByteCode/shifts.cpp
@@ -21,27 +21,15 @@ namespace shifts {
     c = 1 << 0;
     c = 1 << -0;
     c = 1 >> -0;
-    c = 1 << -1; // expected-warning {{shift count is negative}} \
-                 // expected-note {{negative shift count -1}} \
-                 // cxx17-note {{negative shift count -1}} \
-                 // cxx17-warning {{shift count is negative}} \
-                 // ref-warning {{shift count is negative}} \
-                 // ref-note {{negative shift count -1}} \
-                 // ref-cxx17-warning {{shift count is negative}} \
-                 // ref-cxx17-note {{negative shift count -1}}
+    c = 1 << -1; // all-warning {{shift count is negative}} \
+                 // all-note {{negative shift count -1}}
 
     c = 1 >> -1; // expected-warning {{shift count is negative}} \
                  // cxx17-warning {{shift count is negative}} \
                  // ref-warning {{shift count is negative}} \
                  // ref-cxx17-warning {{shift count is negative}}
-    c = 1 << (unsigned)-1; // expected-warning {{shift count >= width of type}} \
-                           // expected-warning {{implicit conversion from 'int' to 'char' changes value from -2147483648 to 0}} \
-                           // cxx17-warning {{shift count >= width of type}} \
-                           // cxx17-warning {{implicit conversion from 'int' to 'char' changes value from -2147483648 to 0}} \
-                           // ref-warning {{shift count >= width of type}} \
-                           // ref-warning {{implicit conversion from 'int' to 'char' changes value from -2147483648 to 0}} \
-                           // ref-cxx17-warning {{shift count >= width of type}} \
-                           // ref-cxx17-warning {{implicit conversion from 'int' to 'char' changes value from -2147483648 to 0}}
+    c = 1 << (unsigned)-1; // all-warning {{shift count >= width of type}} \
+                           // all-warning {{implicit conversion from 'int' to 'char' changes value from -2147483648 to 0}}
     c = 1 >> (unsigned)-1; // expected-warning {{shift count >= width of type}} \
                            // cxx17-warning {{shift count >= width of type}} \
                            // ref-warning {{shift count >= width of type}} \
@@ -212,3 +200,24 @@ enum shiftof {
     X3 = (1<<32) // all-error {{expression is not an integral constant expression}} \
                  // all-note {{shift count 32 >= width of type 'int'}}
 };
+
+#if __WCHAR_WIDTH__ == 32
+static_assert(((wchar_t)-1U >> 31) == -1);
+#endif
+
+#if __INT_WIDTH__ == 32
+static_assert(((int)-1U >> 32) == -1); // all-error {{not an integral constant expression}} \
+                                       // all-note {{shift count 32 >= width of type 'int' (32 bits)}}
+#endif
+
+static_assert((-4 << 32) == 0); // all-error {{not an integral constant expression}} \
+                                // all-note {{shift count}}
+
+static_assert((-4 << 1) == -8); // ref-cxx17-error {{not an integral constant expression}} \
+                                // ref-cxx17-note {{left shift of negative value -4}} \
+                                // cxx17-error {{not an integral constant expression}} \
+                                // cxx17-note {{left shift of negative value -4}}
+static_assert((-4 << 31) == 0); // ref-cxx17-error {{not an integral constant expression}} \
+                                // ref-cxx17-note {{left shift of negative value -4}} \
+                                // cxx17-error {{not an integral constant expression}} \
+                                // cxx17-note {{left shift of negative value -4}}

@tbaederr tbaederr merged commit 49c2207 into llvm:main Dec 14, 2024
11 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building clang at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/AST/ByteCode/shifts.cpp
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder clang-armv8-quick running on linaro-clang-armv8-quick while building clang at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/shifts.cpp
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************


tbaederr added a commit that referenced this pull request Dec 14, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building clang at step 10 "test-check-clang".

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

Here is the relevant piece of the build log for the reference
Step 10 (test-check-clang) failure: Test just built components: check-clang completed (failure)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe -cc1 -internal-isystem C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\20\include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\AST\ByteCode\shifts.cpp
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe' -cc1 -internal-isystem 'C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\20\include' -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\AST\ByteCode\shifts.cpp'
# .---command stderr------------
# | error: 'all-error' diagnostics seen but not expected: 
# |   File C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\AST\ByteCode\shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
# | error: 'all-note' diagnostics seen but not expected: 
# |   File C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\AST\ByteCode\shifts.cpp Line 205: expression evaluates to '1 == -1'
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-global-isel running on linaro-clang-aarch64-global-isel while building clang at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-hwasan running on sanitizer-buildbot12 while building clang at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85475 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (123 of 85475)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
48.94s: Clang :: Driver/fsanitize.c
40.39s: Clang :: Preprocessor/riscv-target-features.c
37.52s: Clang :: Driver/arm-cortex-cpus-2.c
36.70s: Clang :: Driver/arm-cortex-cpus-1.c
35.54s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
33.46s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
33.33s: Clang :: OpenMP/target_update_codegen.cpp
28.80s: Clang :: Preprocessor/aarch64-target-features.c
28.75s: Clang :: Preprocessor/arm-target-features.c
26.48s: Clang :: Driver/clang_f_opts.c
25.60s: LLVM :: CodeGen/RISCV/attributes.ll
25.16s: Clang :: Preprocessor/predefined-arch-macros.c
24.58s: Clang :: Driver/linux-ld.c
23.75s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
23.56s: LLVM :: CodeGen/ARM/build-attributes.ll
22.44s: Clang :: Driver/cl-options.c
21.11s: Clang :: Driver/x86-target-features.c
20.41s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
18.56s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
Step 11 (stage2/hwasan check) failure: stage2/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85475 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (123 of 85475)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
48.94s: Clang :: Driver/fsanitize.c
40.39s: Clang :: Preprocessor/riscv-target-features.c
37.52s: Clang :: Driver/arm-cortex-cpus-2.c
36.70s: Clang :: Driver/arm-cortex-cpus-1.c
35.54s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
33.46s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
33.33s: Clang :: OpenMP/target_update_codegen.cpp
28.80s: Clang :: Preprocessor/aarch64-target-features.c
28.75s: Clang :: Preprocessor/arm-target-features.c
26.48s: Clang :: Driver/clang_f_opts.c
25.60s: LLVM :: CodeGen/RISCV/attributes.ll
25.16s: Clang :: Preprocessor/predefined-arch-macros.c
24.58s: Clang :: Driver/linux-ld.c
23.75s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
23.56s: LLVM :: CodeGen/ARM/build-attributes.ll
22.44s: Clang :: Driver/cl-options.c
21.11s: Clang :: Driver/x86-target-features.c
20.41s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
18.56s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
Step 13 (stage3/hwasan check) failure: stage3/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 82642 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (132 of 82642)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.45s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
18.08s: Clang :: Driver/fsanitize.c
14.39s: Clang :: Preprocessor/riscv-target-features.c
13.68s: Clang :: Driver/arm-cortex-cpus-2.c
13.26s: Clang :: Driver/arm-cortex-cpus-1.c
12.78s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
12.58s: Clang :: OpenMP/target_update_codegen.cpp
10.16s: Clang :: Preprocessor/aarch64-target-features.c
10.01s: LLVM-Unit :: Support/./SupportTests/ProgramEnvTest/TestExecuteNoWaitDetached
9.82s: Clang :: Preprocessor/arm-target-features.c
9.42s: Clang :: Driver/clang_f_opts.c
9.09s: Clang :: Driver/linux-ld.c
8.53s: Clang :: Preprocessor/predefined-arch-macros.c
7.96s: Clang :: Driver/cl-options.c
7.84s: Clang :: Driver/x86-target-features.c
7.75s: LLVM :: CodeGen/ARM/build-attributes.ll
7.52s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
7.31s: Clang :: Analysis/a_flaky_crash.cpp
7.26s: LLVM :: CodeGen/RISCV/attributes.ll

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder clang-armv7-global-isel running on linaro-clang-armv7-global-isel while building clang at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-asan running on sanitizer-buildbot8 while building clang at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85476 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (120 of 85476)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
211.92s: Clang :: Driver/fsanitize.c
168.56s: Clang :: Preprocessor/riscv-target-features.c
166.08s: Clang :: Driver/arm-cortex-cpus-2.c
162.86s: Clang :: Driver/arm-cortex-cpus-1.c
140.30s: Clang :: OpenMP/target_update_codegen.cpp
134.41s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
120.87s: Clang :: Preprocessor/aarch64-target-features.c
120.65s: Clang :: Driver/linux-ld.c
120.51s: Clang :: Preprocessor/arm-target-features.c
117.76s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
111.71s: Clang :: Driver/clang_f_opts.c
108.94s: LLVM :: CodeGen/RISCV/attributes.ll
108.77s: Clang :: Driver/x86-target-features.c
108.55s: Clang :: Preprocessor/predefined-arch-macros.c
93.56s: Clang :: Driver/cl-options.c
83.46s: Clang :: Driver/riscv-arch.c
77.41s: Clang :: Driver/debug-options.c
75.60s: LLVM :: CodeGen/ARM/build-attributes.ll
74.97s: Clang :: Preprocessor/predefined-macros-no-warnings.c
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85476 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (120 of 85476)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
211.92s: Clang :: Driver/fsanitize.c
168.56s: Clang :: Preprocessor/riscv-target-features.c
166.08s: Clang :: Driver/arm-cortex-cpus-2.c
162.86s: Clang :: Driver/arm-cortex-cpus-1.c
140.30s: Clang :: OpenMP/target_update_codegen.cpp
134.41s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
120.87s: Clang :: Preprocessor/aarch64-target-features.c
120.65s: Clang :: Driver/linux-ld.c
120.51s: Clang :: Preprocessor/arm-target-features.c
117.76s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
111.71s: Clang :: Driver/clang_f_opts.c
108.94s: LLVM :: CodeGen/RISCV/attributes.ll
108.77s: Clang :: Driver/x86-target-features.c
108.55s: Clang :: Preprocessor/predefined-arch-macros.c
93.56s: Clang :: Driver/cl-options.c
83.46s: Clang :: Driver/riscv-arch.c
77.41s: Clang :: Driver/debug-options.c
75.60s: LLVM :: CodeGen/ARM/build-attributes.ll
74.97s: Clang :: Preprocessor/predefined-macros-no-warnings.c
Step 13 (stage3/asan check) failure: stage3/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 82642 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (130 of 82642)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.47s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
17.86s: Clang :: Driver/fsanitize.c
13.98s: Clang :: Preprocessor/riscv-target-features.c
13.56s: Clang :: Driver/arm-cortex-cpus-2.c
13.03s: Clang :: Driver/arm-cortex-cpus-1.c
12.66s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
12.48s: Clang :: OpenMP/target_update_codegen.cpp
10.10s: Clang :: Preprocessor/aarch64-target-features.c
10.01s: LLVM-Unit :: Support/./SupportTests/ProgramEnvTest/TestExecuteNoWaitDetached
9.72s: Clang :: Preprocessor/arm-target-features.c
9.23s: Clang :: Driver/clang_f_opts.c
8.91s: Clang :: Driver/linux-ld.c
8.28s: Clang :: Preprocessor/predefined-arch-macros.c
8.01s: Clang :: Driver/cl-options.c
7.75s: LLVM :: CodeGen/ARM/build-attributes.ll
7.70s: Clang :: Driver/x86-target-features.c
7.56s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
7.26s: Clang :: Analysis/a_flaky_crash.cpp
7.24s: LLVM :: CodeGen/RISCV/attributes.ll

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-ubsan running on sanitizer-buildbot10 while building clang at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85476 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (126 of 85476)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
145.93s: Clang :: Driver/fsanitize.c
143.23s: Clang :: Preprocessor/riscv-target-features.c
129.45s: Clang :: OpenMP/target_update_codegen.cpp
125.64s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
112.50s: Clang :: Preprocessor/aarch64-target-features.c
108.75s: Clang :: Preprocessor/arm-target-features.c
101.14s: Clang :: Driver/arm-cortex-cpus-2.c
97.80s: Clang :: Driver/arm-cortex-cpus-1.c
97.15s: Clang :: Preprocessor/predefined-arch-macros.c
73.03s: Clang :: Preprocessor/predefined-macros-no-warnings.c
66.03s: Clang :: Driver/linux-ld.c
65.41s: Clang :: Preprocessor/x86_target_features.c
63.80s: Clang :: Preprocessor/init.c
62.98s: Clang :: Driver/x86-target-features.c
57.49s: Clang :: Driver/clang_f_opts.c
54.29s: LLVM :: CodeGen/RISCV/attributes.ll
54.01s: LLVM :: CodeGen/ARM/build-attributes.ll
51.85s: Clang :: Driver/cl-options.c
44.20s: Clang :: Parser/gh110231.cpp
Step 11 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85476 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (126 of 85476)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
145.93s: Clang :: Driver/fsanitize.c
143.23s: Clang :: Preprocessor/riscv-target-features.c
129.45s: Clang :: OpenMP/target_update_codegen.cpp
125.64s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
112.50s: Clang :: Preprocessor/aarch64-target-features.c
108.75s: Clang :: Preprocessor/arm-target-features.c
101.14s: Clang :: Driver/arm-cortex-cpus-2.c
97.80s: Clang :: Driver/arm-cortex-cpus-1.c
97.15s: Clang :: Preprocessor/predefined-arch-macros.c
73.03s: Clang :: Preprocessor/predefined-macros-no-warnings.c
66.03s: Clang :: Driver/linux-ld.c
65.41s: Clang :: Preprocessor/x86_target_features.c
63.80s: Clang :: Preprocessor/init.c
62.98s: Clang :: Driver/x86-target-features.c
57.49s: Clang :: Driver/clang_f_opts.c
54.29s: LLVM :: CodeGen/RISCV/attributes.ll
54.01s: LLVM :: CodeGen/ARM/build-attributes.ll
51.85s: Clang :: Driver/cl-options.c
44.20s: Clang :: Parser/gh110231.cpp
Step 13 (stage3/ubsan check) failure: stage3/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 82642 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (160 of 82642)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.88s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
21.50s: Clang :: Driver/fsanitize.c
18.82s: Clang :: Preprocessor/riscv-target-features.c
16.56s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
16.34s: Clang :: OpenMP/target_update_codegen.cpp
16.23s: Clang :: Analysis/runtime-regression.c
15.64s: Clang :: Driver/arm-cortex-cpus-2.c
15.32s: Clang :: Driver/arm-cortex-cpus-1.c
14.64s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
13.84s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
13.29s: Clang :: Preprocessor/aarch64-target-features.c
12.78s: Clang :: Preprocessor/arm-target-features.c
12.68s: lit :: shtest-define.py
11.76s: Clang :: Analysis/a_flaky_crash.cpp
11.32s: Clang :: Preprocessor/predefined-arch-macros.c
11.23s: LLVM :: CodeGen/RISCV/attributes.ll
11.15s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret-bfloat.c
10.60s: Clang :: Driver/linux-ld.c
10.14s: Clang :: Driver/clang_f_opts.c

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 14, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-msan running on sanitizer-buildbot10 while building clang at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85474 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (126 of 85474)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
103.03s: Clang :: Driver/fsanitize.c
89.72s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
84.62s: Clang :: Preprocessor/riscv-target-features.c
78.89s: Clang :: Driver/arm-cortex-cpus-2.c
77.84s: Clang :: Driver/arm-cortex-cpus-1.c
69.61s: Clang :: Analysis/runtime-regression.c
69.61s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
68.93s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
66.64s: Clang :: OpenMP/target_update_codegen.cpp
60.10s: LLVM :: CodeGen/RISCV/attributes.ll
58.77s: Clang :: Driver/clang_f_opts.c
57.36s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
54.66s: Clang :: Preprocessor/aarch64-target-features.c
53.77s: Clang :: Preprocessor/arm-target-features.c
52.15s: Clang :: Driver/linux-ld.c
50.25s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret-bfloat.c
49.91s: Clang :: Analysis/a_flaky_crash.cpp
49.76s: LLVM :: CodeGen/ARM/build-attributes.ll
47.36s: Clang :: Driver/cl-options.c
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 85474 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (126 of 85474)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
103.03s: Clang :: Driver/fsanitize.c
89.72s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
84.62s: Clang :: Preprocessor/riscv-target-features.c
78.89s: Clang :: Driver/arm-cortex-cpus-2.c
77.84s: Clang :: Driver/arm-cortex-cpus-1.c
69.61s: Clang :: Analysis/runtime-regression.c
69.61s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
68.93s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
66.64s: Clang :: OpenMP/target_update_codegen.cpp
60.10s: LLVM :: CodeGen/RISCV/attributes.ll
58.77s: Clang :: Driver/clang_f_opts.c
57.36s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
54.66s: Clang :: Preprocessor/aarch64-target-features.c
53.77s: Clang :: Preprocessor/arm-target-features.c
52.15s: Clang :: Driver/linux-ld.c
50.25s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret-bfloat.c
49.91s: Clang :: Analysis/a_flaky_crash.cpp
49.76s: LLVM :: CodeGen/ARM/build-attributes.ll
47.36s: Clang :: Driver/cl-options.c
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 82642 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/shifts.cpp (134 of 82642)
******************** TEST 'Clang :: AST/ByteCode/shifts.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/20/include -nostdsysteminc -fexperimental-new-constant-interpreter -std=c++20 -verify=expected,all /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp
error: 'all-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: static assertion failed due to requirement '((wchar_t)-1U >> 31) == -1'
error: 'all-note' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/AST/ByteCode/shifts.cpp Line 205: expression evaluates to '1 == -1'
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.91s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
22.43s: Clang :: Driver/fsanitize.c
19.46s: Clang :: Preprocessor/riscv-target-features.c
17.20s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
16.89s: Clang :: OpenMP/target_update_codegen.cpp
15.94s: Clang :: Driver/arm-cortex-cpus-2.c
15.79s: Clang :: Driver/arm-cortex-cpus-1.c
14.04s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
13.34s: Clang :: Preprocessor/aarch64-target-features.c
13.31s: Clang :: Preprocessor/arm-target-features.c
13.30s: Clang :: Analysis/runtime-regression.c
12.82s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
12.21s: lit :: shtest-define.py
11.82s: Clang :: Preprocessor/predefined-arch-macros.c
11.80s: Clang :: Analysis/a_flaky_crash.cpp
11.38s: LLVM :: CodeGen/RISCV/attributes.ll
10.87s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret-bfloat.c
10.67s: Clang :: Driver/linux-ld.c
10.45s: Clang :: Driver/clang_f_opts.c

tbaederr added a commit that referenced this pull request Dec 16, 2024
This reverts commit a6636ce.

This original commit failed on hosts with signed wchar_t. Care for
this in the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants