Skip to content

[DAG] Narrow vselect mask to vXi1 in foldToMaskedStore#201609

Merged
fzou1 merged 3 commits into
llvm:mainfrom
fzou1:fix-crash-in-lowermstore
Jun 7, 2026
Merged

[DAG] Narrow vselect mask to vXi1 in foldToMaskedStore#201609
fzou1 merged 3 commits into
llvm:mainfrom
fzou1:fix-crash-in-lowermstore

Conversation

@fzou1

@fzou1 fzou1 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

foldToMaskedStore (added in 1c0ac80) rewrites
store(vselect(cond, x, load(ptr)), ptr) -> masked_store(x, ptr, cond)
passing the vselect condition straight through as the store mask. A masked
store follows the IR convention of a vXi1 mask, but the condition can be a
wider boolean vector. On AVX512F targets without VLX, a maxnum/minnum
store-back lowers the NaN test with a legacy packed (CMPP) comparison whose
result is a vXi32/vXi64 vector, so the masked store is created with a wide
mask and LowerMSTORE asserts:

Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
"Unexpected mask type"' failed.

When the matching vXi1 type is legal, narrow the mask to it before building
the masked store. Targets where vXi1 is illegal (e.g. AVX/AVX2) keep the wide
mask and continue to lower it as a blend/vmaskmov, and targets whose vselect
condition is already vXi1 (e.g. AArch64 SVE, RISC-V RVV) are unaffected.

This fixes the crash at the source and lets the X86 LowerMSTORE keep its
invariant of only ever seeing a vXi1 mask (no target-specific workaround).

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

@llvmorg-github-actions

llvmorg-github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

@llvm/pr-subscribers-llvm-selectiondag

@llvm/pr-subscribers-backend-x86

Author: Feng Zou (fzou1)

Changes

On AVX512F targets without VLX (e.g. KNL), masked stores are custom-lowered by widening to 512-bit operations. A maxnum/minnum store-back is expanded using a legacy packed (CMPP) vector comparison, and the store-back DAGCombine fuses that vector comparison into the masked store. As a result LowerMSTORE receives a mask with vNi32 elements instead of vNi1 and hits an assertion:

Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
"Unexpected mask type"' failed.

(reproduces with -mattr=+avx512f or -mcpu=knl; -mcpu=skylake-avx512 and +avx512vl are unaffected because the mask is produced as a k-register.)

Accept a wide vNi32 mask in addition to vNi1: widen it in its own element type and truncate to vNi1 before building the masked store. A CMPP result is all-ones/all-zeros per lane, so bit 0 of each lane carries the predicate and the zero-filled widened lanes truncate to 0 (disabled).


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

2 Files Affected:

  • (modified) llvm/lib/Target/X86/X86ISelLowering.cpp (+13-4)
  • (added) llvm/test/CodeGen/X86/avx512-maxnum-minnum-masked-store.ll (+149)
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 8bb44e55d713f..3c85089f092e5 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -34287,14 +34287,23 @@ static SDValue LowerMSTORE(SDValue Op, const X86Subtarget &Subtarget,
   unsigned NumEltsInWideVec = 512/VT.getScalarSizeInBits();
   MVT WideDataVT = MVT::getVectorVT(ScalarVT, NumEltsInWideVec);
 
-  // Mask element has to be i1.
-  assert(Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
-         "Unexpected mask type");
+  // For AVX512F targets without VLX (e.g. KNL), a maxnum/minnum store-back
+  // fuses a legacy CMPP vector comparison into the masked store, so the mask
+  // may arrive as vNi32 instead of vNi1. Accept both and convert to i1 below.
+  MVT MaskEltVT = Mask.getSimpleValueType().getScalarType();
+  assert((MaskEltVT == MVT::i1 || MaskEltVT.getSizeInBits() >= 8) &&
+         "Expected an i1 mask or a wide vector mask from a CMPP comparison");
 
-  MVT WideMaskVT = MVT::getVectorVT(MVT::i1, NumEltsInWideVec);
+  MVT WideMaskVT = MVT::getVectorVT(MaskEltVT, NumEltsInWideVec);
 
   DataToStore = ExtendToType(DataToStore, WideDataVT, DAG);
   Mask = ExtendToType(Mask, WideMaskVT, DAG, true);
+  // Truncate a vNi32 mask down to vNi1 for the masked op. A CMPP result is
+  // all-ones/all-zeros per lane, so bit 0 of each lane carries the predicate,
+  // and the zero-filled widened lanes truncate to 0 (disabled).
+  if (MaskEltVT != MVT::i1)
+    Mask = DAG.getNode(ISD::TRUNCATE, dl,
+                       MVT::getVectorVT(MVT::i1, NumEltsInWideVec), Mask);
   return DAG.getMaskedStore(N->getChain(), dl, DataToStore, N->getBasePtr(),
                             N->getOffset(), Mask, N->getMemoryVT(),
                             N->getMemOperand(), N->getAddressingMode(),
diff --git a/llvm/test/CodeGen/X86/avx512-maxnum-minnum-masked-store.ll b/llvm/test/CodeGen/X86/avx512-maxnum-minnum-masked-store.ll
new file mode 100644
index 0000000000000..caeba9a2f1372
--- /dev/null
+++ b/llvm/test/CodeGen/X86/avx512-maxnum-minnum-masked-store.ll
@@ -0,0 +1,149 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f | FileCheck %s --check-prefix=AVX512F
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f,+avx512vl | FileCheck %s --check-prefix=AVX512VL
+
+; On AVX512F targets without VLX (e.g. KNL), masked stores are widened to 512
+; bits during custom lowering. A maxnum/minnum store-back fuses the legacy CMPP
+; vector comparison into the masked store, so the mask arrives as vNi32 rather
+; than vNi1. The lowering must accept and convert the wide mask, not assert.
+
+define void @maxnum_v4f32_masked_store(<4 x float> %a, ptr %ptr) {
+; AVX512F-LABEL: maxnum_v4f32_masked_store:
+; AVX512F:       # %bb.0:
+; AVX512F-NEXT:    vmovups (%rdi), %xmm1
+; AVX512F-NEXT:    vmaxps %xmm0, %xmm1, %xmm1
+; AVX512F-NEXT:    vcmpordps %xmm0, %xmm0, %xmm0
+; AVX512F-NEXT:    vptestmd %zmm0, %zmm0, %k1
+; AVX512F-NEXT:    vmovups %zmm1, (%rdi) {%k1}
+; AVX512F-NEXT:    vzeroupper
+; AVX512F-NEXT:    retq
+;
+; AVX512VL-LABEL: maxnum_v4f32_masked_store:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vmovups (%rdi), %xmm1
+; AVX512VL-NEXT:    vmaxps %xmm0, %xmm1, %xmm1
+; AVX512VL-NEXT:    vcmpordps %xmm0, %xmm0, %k1
+; AVX512VL-NEXT:    vmovups %xmm1, (%rdi) {%k1}
+; AVX512VL-NEXT:    retq
+  %b = load <4 x float>, ptr %ptr, align 4
+  %m = call <4 x float> @llvm.maxnum.v4f32(<4 x float> %a, <4 x float> %b)
+  store <4 x float> %m, ptr %ptr, align 4
+  ret void
+}
+
+define void @maxnum_v2f64_masked_store(<2 x double> %a, ptr %ptr) {
+; AVX512F-LABEL: maxnum_v2f64_masked_store:
+; AVX512F:       # %bb.0:
+; AVX512F-NEXT:    vmovupd (%rdi), %xmm1
+; AVX512F-NEXT:    vmaxpd %xmm0, %xmm1, %xmm1
+; AVX512F-NEXT:    vcmpordpd %xmm0, %xmm0, %xmm0
+; AVX512F-NEXT:    vptestmq %zmm0, %zmm0, %k1
+; AVX512F-NEXT:    vmovupd %zmm1, (%rdi) {%k1}
+; AVX512F-NEXT:    vzeroupper
+; AVX512F-NEXT:    retq
+;
+; AVX512VL-LABEL: maxnum_v2f64_masked_store:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vmovupd (%rdi), %xmm1
+; AVX512VL-NEXT:    vmaxpd %xmm0, %xmm1, %xmm1
+; AVX512VL-NEXT:    vcmpordpd %xmm0, %xmm0, %k1
+; AVX512VL-NEXT:    vmovupd %xmm1, (%rdi) {%k1}
+; AVX512VL-NEXT:    retq
+  %b = load <2 x double>, ptr %ptr, align 8
+  %m = call <2 x double> @llvm.maxnum.v2f64(<2 x double> %a, <2 x double> %b)
+  store <2 x double> %m, ptr %ptr, align 8
+  ret void
+}
+
+define void @minnum_v4f32_masked_store(<4 x float> %a, ptr %ptr) {
+; AVX512F-LABEL: minnum_v4f32_masked_store:
+; AVX512F:       # %bb.0:
+; AVX512F-NEXT:    vmovups (%rdi), %xmm1
+; AVX512F-NEXT:    vminps %xmm0, %xmm1, %xmm1
+; AVX512F-NEXT:    vcmpordps %xmm0, %xmm0, %xmm0
+; AVX512F-NEXT:    vptestmd %zmm0, %zmm0, %k1
+; AVX512F-NEXT:    vmovups %zmm1, (%rdi) {%k1}
+; AVX512F-NEXT:    vzeroupper
+; AVX512F-NEXT:    retq
+;
+; AVX512VL-LABEL: minnum_v4f32_masked_store:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vmovups (%rdi), %xmm1
+; AVX512VL-NEXT:    vminps %xmm0, %xmm1, %xmm1
+; AVX512VL-NEXT:    vcmpordps %xmm0, %xmm0, %k1
+; AVX512VL-NEXT:    vmovups %xmm1, (%rdi) {%k1}
+; AVX512VL-NEXT:    retq
+  %b = load <4 x float>, ptr %ptr, align 4
+  %m = call <4 x float> @llvm.minnum.v4f32(<4 x float> %a, <4 x float> %b)
+  store <4 x float> %m, ptr %ptr, align 4
+  ret void
+}
+
+define void @minnum_v2f64_masked_store(<2 x double> %a, ptr %ptr) {
+; AVX512F-LABEL: minnum_v2f64_masked_store:
+; AVX512F:       # %bb.0:
+; AVX512F-NEXT:    vmovupd (%rdi), %xmm1
+; AVX512F-NEXT:    vminpd %xmm0, %xmm1, %xmm1
+; AVX512F-NEXT:    vcmpordpd %xmm0, %xmm0, %xmm0
+; AVX512F-NEXT:    vptestmq %zmm0, %zmm0, %k1
+; AVX512F-NEXT:    vmovupd %zmm1, (%rdi) {%k1}
+; AVX512F-NEXT:    vzeroupper
+; AVX512F-NEXT:    retq
+;
+; AVX512VL-LABEL: minnum_v2f64_masked_store:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vmovupd (%rdi), %xmm1
+; AVX512VL-NEXT:    vminpd %xmm0, %xmm1, %xmm1
+; AVX512VL-NEXT:    vcmpordpd %xmm0, %xmm0, %k1
+; AVX512VL-NEXT:    vmovupd %xmm1, (%rdi) {%k1}
+; AVX512VL-NEXT:    retq
+  %b = load <2 x double>, ptr %ptr, align 8
+  %m = call <2 x double> @llvm.minnum.v2f64(<2 x double> %a, <2 x double> %b)
+  store <2 x double> %m, ptr %ptr, align 8
+  ret void
+}
+
+; Explicit masked store using a setcc mask (reaches LowerMSTORE with an i1 mask).
+define void @explicit_masked_store_setcc(<4 x float> %a, <4 x float> %data, ptr %ptr) {
+; AVX512F-LABEL: explicit_masked_store_setcc:
+; AVX512F:       # %bb.0:
+; AVX512F-NEXT:    # kill: def $xmm1 killed $xmm1 def $zmm1
+; AVX512F-NEXT:    # kill: def $xmm0 killed $xmm0 def $zmm0
+; AVX512F-NEXT:    vcmpordps %zmm0, %zmm0, %k0
+; AVX512F-NEXT:    kshiftlw $12, %k0, %k0
+; AVX512F-NEXT:    kshiftrw $12, %k0, %k1
+; AVX512F-NEXT:    vmovups %zmm1, (%rdi) {%k1}
+; AVX512F-NEXT:    vzeroupper
+; AVX512F-NEXT:    retq
+;
+; AVX512VL-LABEL: explicit_masked_store_setcc:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vcmpordps %xmm0, %xmm0, %k1
+; AVX512VL-NEXT:    vmovups %xmm1, (%rdi) {%k1}
+; AVX512VL-NEXT:    retq
+  %cmp = fcmp ord <4 x float> %a, %a
+  call void @llvm.masked.store.v4f32.p0(<4 x float> %data, ptr %ptr, i32 4, <4 x i1> %cmp)
+  ret void
+}
+
+define void @v4i32_masked_store(<4 x i32> %a, <4 x i32> %data, ptr %ptr) {
+; AVX512F-LABEL: v4i32_masked_store:
+; AVX512F:       # %bb.0:
+; AVX512F-NEXT:    # kill: def $xmm1 killed $xmm1 def $zmm1
+; AVX512F-NEXT:    # kill: def $xmm0 killed $xmm0 def $zmm0
+; AVX512F-NEXT:    vptestnmd %zmm0, %zmm0, %k0
+; AVX512F-NEXT:    kshiftlw $12, %k0, %k0
+; AVX512F-NEXT:    kshiftrw $12, %k0, %k1
+; AVX512F-NEXT:    vmovdqu32 %zmm1, (%rdi) {%k1}
+; AVX512F-NEXT:    vzeroupper
+; AVX512F-NEXT:    retq
+;
+; AVX512VL-LABEL: v4i32_masked_store:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vptestnmd %xmm0, %xmm0, %k1
+; AVX512VL-NEXT:    vmovdqu32 %xmm1, (%rdi) {%k1}
+; AVX512VL-NEXT:    retq
+  %cmp = icmp eq <4 x i32> %a, zeroinitializer
+  call void @llvm.masked.store.v4i32.p0(<4 x i32> %data, ptr %ptr, i32 4, <4 x i1> %cmp)
+  ret void
+}

@fzou1 fzou1 requested review from e-kud, phoebewang and topperc June 4, 2026 15:16
}

; Explicit masked store using a setcc mask (reaches LowerMSTORE with an i1 mask).
define void @explicit_masked_store_setcc(<4 x float> %a, <4 x float> %data, ptr %ptr) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This passes without the change: https://godbolt.org/z/EYaebqxzq

@phoebewang

Copy link
Copy Markdown
Contributor

It seems it's caused by 1c0ac80d4a9e. Maybe change the code in foldToMaskedStore? We may also need to backport to LLVM22.

@fzou1

fzou1 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

It seems it's caused by 1c0ac80d4a9e. Maybe change the code in foldToMaskedStore? We may also need to backport to LLVM22.

You're right. I confirmed that. I'll try to fix in foldToMaskedStore and update PR. Thanks.

@llvmorg-github-actions llvmorg-github-actions Bot added the llvm:SelectionDAG SelectionDAGISel as well label Jun 5, 2026
@fzou1 fzou1 changed the title [X86] Fix crash in LowerMSTORE on AVX512F with VLX [DAG] Narrow vselect mask to vXi1 in foldToMaskedStore Jun 5, 2026
@fzou1 fzou1 requested review from RKSimon and arsenm June 5, 2026 08:38

@phoebewang phoebewang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

🐧 Linux x64 Test Results

  • 196311 tests passed
  • 5324 tests skipped

✅ The build succeeded and all tests passed.

Comment on lines +2 to +5
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx | FileCheck %s --check-prefix=AVX
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2 | FileCheck %s --check-prefix=AVX
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f | FileCheck %s --check-prefix=AVX512F
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f,+avx512vl | FileCheck %s --check-prefix=AVX512VL

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the gnu

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@fzou1

fzou1 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

🐧 Linux x64 Test Results

  • 175134 tests passed
  • 3434 tests skipped
  • 6 tests failed

Failed Tests

(click on a test name to see its output)

lldb-api

lldb-api.iohandler/sigint/TestProcessIOHandlerInterrupt.py

Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint -p TestProcessIOHandlerInterrupt.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 7338bc833622deb54dc070bf7589334926de8206)
  clang revision 7338bc833622deb54dc070bf7589334926de8206
  llvm revision 7338bc833622deb54dc070bf7589334926de8206
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test (TestProcessIOHandlerInterrupt.TestCase.test)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/iohandler/sigint/TestProcessIOHandlerInterrupt.test/Error_test.log
======================================================================
ERROR: test (TestProcessIOHandlerInterrupt.TestCase.test)
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/iohandler/sigint/TestProcessIOHandlerInterrupt.test -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb CXX_SOURCES=cat.cpp OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/iohandler/sigint/TestProcessIOHandlerInterrupt.test'
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT cat.o -MD -MP -MF cat.d -c -o cat.o /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint/cat.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint/cat.cpp:12:23: error: use of undeclared identifier 'errno'
   12 |     while (r == -1 && errno == EINTR);
      |                       ^~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint/cat.cpp:12:32: error: use of undeclared identifier 'EINTR'
   12 |     while (r == -1 && errno == EINTR);
      |                                ^~~~~
2 errors generated.
gmake: *** [Makefile.rules:660: cat.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/iohandler/sigint/TestProcessIOHandlerInterrupt.test'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/iohandler/sigint
----------------------------------------------------------------------
Ran 1 test in 0.328s

FAILED (errors=1)

--

lldb-api.tools/lldb-dap/breakpoint/TestDAP_breakpointLocations.py

Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -p TestDAP_breakpointLocations.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 7338bc833622deb54dc070bf7589334926de8206)
  clang revision 7338bc833622deb54dc070bf7589334926de8206
  llvm revision 7338bc833622deb54dc070bf7589334926de8206
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_column_breakpoints (TestDAP_breakpointLocations.TestDAP_breakpointLocations.test_column_breakpoints)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations/Error_test_column_breakpoints.log
======================================================================
ERROR: test_column_breakpoints (TestDAP_breakpointLocations.TestDAP_breakpointLocations.test_column_breakpoints)
   Test retrieving the available breakpoint locations.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
----------------------------------------------------------------------
Ran 1 test in 0.149s

FAILED (errors=1)

--

lldb-api.tools/lldb-dap/breakpoint/TestDAP_logpoints.py

Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -p TestDAP_logpoints.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 7338bc833622deb54dc070bf7589334926de8206)
  clang revision 7338bc833622deb54dc070bf7589334926de8206
  llvm revision 7338bc833622deb54dc070bf7589334926de8206
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_logmessage_advanced (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_advanced)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints/Error_test_logmessage_advanced.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_logmessage_basic (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_basic)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints/Error_test_logmessage_basic.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_logmessage_format (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_format)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints/Error_test_logmessage_format.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_logmessage_format_failure (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_format_failure)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints/Error_test_logmessage_format_failure.log
======================================================================
ERROR: test_logmessage_advanced (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_advanced)
   Tests breakpoint logmessage functionality for complex expression.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_logmessage_basic (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_basic)
   Tests breakpoint logmessage basic functionality.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_logmessage_format (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_format)
   Tests breakpoint logmessage functionality with format.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_logmessage_format_failure (TestDAP_logpoints.TestDAP_logpoints.test_logmessage_format_failure)
   Tests breakpoint logmessage format with parsing failure.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_logpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
----------------------------------------------------------------------
Ran 4 tests in 0.337s

FAILED (errors=4)

--

lldb-api.tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.py

Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -p TestDAP_setBreakpoints.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 7338bc833622deb54dc070bf7589334926de8206)
  clang revision 7338bc833622deb54dc070bf7589334926de8206
  llvm revision 7338bc833622deb54dc070bf7589334926de8206
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_clear_breakpoints_unset_breakpoints (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_clear_breakpoints_unset_breakpoints)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_clear_breakpoints_unset_breakpoints/Error_test_clear_breakpoints_unset_breakpoints.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_column_breakpoints (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_column_breakpoints)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_column_breakpoints/Error_test_column_breakpoints.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_functionality (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_functionality)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_functionality/Error_test_functionality.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_hit_multiple_breakpoints (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_hit_multiple_breakpoints)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_hit_multiple_breakpoints/Error_test_hit_multiple_breakpoints.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_set_and_clear (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_set_and_clear)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_set_and_clear/Error_test_set_and_clear.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_source_map (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_source_map)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_source_map/Error_test_source_map.log
======================================================================
ERROR: test_clear_breakpoints_unset_breakpoints (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_clear_breakpoints_unset_breakpoints)
   Test clearing breakpoints like test_set_and_clear, but clear
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_clear_breakpoints_unset_breakpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_clear_breakpoints_unset_breakpoints'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_clear_breakpoints_unset_breakpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_column_breakpoints (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_column_breakpoints)
   Test setting multiple breakpoints in the same line at different columns.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_column_breakpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_column_breakpoints'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_column_breakpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_functionality (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_functionality)
   Tests hitting breakpoints and the functionality of a single
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_functionality -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_functionality'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_functionality'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_hit_multiple_breakpoints (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_hit_multiple_breakpoints)
   Test that if we hit multiple breakpoints at the same address, they
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_hit_multiple_breakpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_hit_multiple_breakpoints'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_hit_multiple_breakpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_set_and_clear (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_set_and_clear)
   Tests setting and clearing source file and line breakpoints.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_set_and_clear -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_set_and_clear'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_set_and_clear'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_source_map (TestDAP_setBreakpoints.TestDAP_setBreakpoints.test_source_map)
   This test simulates building two files in a folder, and then moving
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_source_map -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_source_map'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.test_source_map'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
----------------------------------------------------------------------
Ran 6 tests in 0.338s

FAILED (errors=6)

--

lldb-api.tools/lldb-dap/breakpoint/TestDAP_setExceptionBreakpoints.py

Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -p TestDAP_setExceptionBreakpoints.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 7338bc833622deb54dc070bf7589334926de8206)
  clang revision 7338bc833622deb54dc070bf7589334926de8206
  llvm revision 7338bc833622deb54dc070bf7589334926de8206
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_functionality (TestDAP_setExceptionBreakpoints.TestDAP_setExceptionBreakpoints.test_functionality)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setExceptionBreakpoints/Error_test_functionality.log
======================================================================
ERROR: test_functionality (TestDAP_setExceptionBreakpoints.TestDAP_setExceptionBreakpoints.test_functionality)
   Tests setting and clearing exception breakpoints.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setExceptionBreakpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setExceptionBreakpoints'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setExceptionBreakpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
----------------------------------------------------------------------
Ran 1 test in 0.125s

FAILED (errors=1)

--

lldb-api.tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints.py

Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -p TestDAP_setFunctionBreakpoints.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 7338bc833622deb54dc070bf7589334926de8206)
  clang revision 7338bc833622deb54dc070bf7589334926de8206
  llvm revision 7338bc833622deb54dc070bf7589334926de8206
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_functionality (TestDAP_setFunctionBreakpoints.TestDAP_setFunctionBreakpoints.test_functionality)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints/Error_test_functionality.log
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_set_and_clear (TestDAP_setFunctionBreakpoints.TestDAP_setFunctionBreakpoints.test_set_and_clear)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints/Error_test_set_and_clear.log
======================================================================
ERROR: test_functionality (TestDAP_setFunctionBreakpoints.TestDAP_setFunctionBreakpoints.test_functionality)
   Tests hitting breakpoints and the functionality of a single
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints'
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp main-copy.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
======================================================================
ERROR: test_set_and_clear (TestDAP_setFunctionBreakpoints.TestDAP_setFunctionBreakpoints.test_set_and_clear)
   Tests setting and clearing function breakpoints.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
/usr/bin/gmake VPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -C /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint/Makefile all TRIPLE=x86_64-unknown-linux-gnu CC=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang CC_TYPE=clang CXX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++ LLVM_AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar AR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar OBJCOPY=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-objcopy STRIP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-strip ARCHIVER=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-ar DWP=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/llvm-dwp CLANG_MODULE_CACHE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api LIBCPP_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 LIBCPP_LIBRARY_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu LIBCPP_INCLUDE_TARGET_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 LLDB_OBJ_ROOT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb OS=Linux HOST_OS=Linux

Build Command Output:
gmake: Entering directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints'
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang++  -mllvm -x86-asm-syntax=att -std=c++11 -g -O0  -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info -target x86_64-unknown-linux-gnu -D_DEFAULT_SOURCE -mllvm -x86-asm-syntax=att   -nostdlib++ -nostdinc++ -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 -cxx-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1  --driver-mode=g++ -MT main-copy.o -MD -MP -MF main-copy.d -c -o main-copy.o main-copy.cpp
main-copy.cpp:28:5: error: use of undeclared identifier 'exit'
   28 |     exit(1);
      |     ^~~~
main-copy.cpp:35:5: error: use of undeclared identifier 'exit'
   35 |     exit(2);
      |     ^~~~
2 errors generated.
gmake: *** [Makefile.rules:660: main-copy.o] Error 1
gmake: Leaving directory '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/tools/lldb-dap/breakpoint/TestDAP_setFunctionBreakpoints'

Test Directory:
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint
----------------------------------------------------------------------
Ran 2 tests in 0.125s

FAILED (errors=2)

--

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the infrastructure label.

It's known issue:#201785, unrelated to my changes.

fzou1 and others added 3 commits June 6, 2026 22:33
…hout VLX

On AVX512F targets without VLX (e.g. KNL), masked stores are custom-lowered by
widening to 512-bit operations. A maxnum/minnum store-back is expanded using a
legacy packed (CMPP) vector comparison, and the store-back DAGCombine fuses that
vector comparison into the masked store. As a result LowerMSTORE receives a mask
with vNi32 elements instead of vNi1 and hits an assertion:

  Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
             "Unexpected mask type"' failed.

(reproduces with -mattr=+avx512f or -mcpu=knl; -mcpu=skylake-avx512 and
+avx512vl are unaffected because the mask is produced as a k-register.)

Accept a wide vNi32 mask in addition to vNi1: widen it in its own element type
and truncate to vNi1 before building the masked store. A CMPP result is
all-ones/all-zeros per lane, so bit 0 of each lane carries the predicate and the
zero-filled widened lanes truncate to 0 (disabled).
foldToMaskedStore (added in 1c0ac80) rewrites
  store(vselect(cond, x, load(ptr)), ptr) -> masked_store(x, ptr, cond)
passing the vselect condition straight through as the store mask. A masked
store follows the IR convention of a vXi1 mask, but the condition can be a
wider boolean vector. On AVX512F targets without VLX, a maxnum/minnum
store-back lowers the NaN test with a legacy packed (CMPP) comparison whose
result is a vXi32/vXi64 vector, so the masked store is created with a wide
mask and LowerMSTORE asserts:

  Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
             "Unexpected mask type"' failed.

When the matching vXi1 type is legal, narrow the mask to it before building
the masked store. Targets where vXi1 is illegal (e.g. AVX/AVX2) keep the wide
mask and continue to lower it as a blend/vmaskmov, and targets whose vselect
condition is already vXi1 (e.g. AArch64 SVE, RISC-V RVV) are unaffected.

This fixes the crash at the source and lets the X86 LowerMSTORE keep its
invariant of only ever seeing a vXi1 mask (no target-specific workaround).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fzou1 fzou1 force-pushed the fix-crash-in-lowermstore branch from 155889c to a9f8d06 Compare June 6, 2026 14:34
@fzou1 fzou1 merged commit e6bd788 into llvm:main Jun 7, 2026
10 checks passed
@fzou1 fzou1 deleted the fix-crash-in-lowermstore branch June 7, 2026 08:14
@phoebewang phoebewang added this to the LLVM 22.x Release milestone Jun 10, 2026
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in LLVM Release Status Jun 10, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in LLVM Release Status Jun 10, 2026
@phoebewang

Copy link
Copy Markdown
Contributor

/cherry-pick e6bd788

@llvmbot

llvmbot commented Jun 10, 2026

Copy link
Copy Markdown
Member

/pull-request #202880

dyung pushed a commit to llvmbot/llvm-project that referenced this pull request Jun 10, 2026
foldToMaskedStore (added in
llvm@1c0ac80)
rewrites
  store(vselect(cond, x, load(ptr)), ptr) -> masked_store(x, ptr, cond)
passing the vselect condition straight through as the store mask. A
masked
store follows the IR convention of a vXi1 mask, but the condition can be
a
wider boolean vector. On AVX512F targets without VLX, a maxnum/minnum
store-back lowers the NaN test with a legacy packed (CMPP) comparison
whose
result is a vXi32/vXi64 vector, so the masked store is created with a
wide
mask and LowerMSTORE asserts:

  Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
             "Unexpected mask type"' failed.

When the matching vXi1 type is legal, narrow the mask to it before
building
the masked store. Targets where vXi1 is illegal (e.g. AVX/AVX2) keep the
wide
mask and continue to lower it as a blend/vmaskmov, and targets whose
vselect
condition is already vXi1 (e.g. AArch64 SVE, RISC-V RVV) are unaffected.

This fixes the crash at the source and lets the X86 LowerMSTORE keep its
invariant of only ever seeing a vXi1 mask (no target-specific
workaround).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit e6bd788)
carlobertolli pushed a commit to carlobertolli/llvm-project that referenced this pull request Jun 11, 2026
foldToMaskedStore (added in
llvm@1c0ac80)
rewrites
  store(vselect(cond, x, load(ptr)), ptr) -> masked_store(x, ptr, cond)
passing the vselect condition straight through as the store mask. A
masked
store follows the IR convention of a vXi1 mask, but the condition can be
a
wider boolean vector. On AVX512F targets without VLX, a maxnum/minnum
store-back lowers the NaN test with a legacy packed (CMPP) comparison
whose
result is a vXi32/vXi64 vector, so the masked store is created with a
wide
mask and LowerMSTORE asserts:

  Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
             "Unexpected mask type"' failed.

When the matching vXi1 type is legal, narrow the mask to it before
building
the masked store. Targets where vXi1 is illegal (e.g. AVX/AVX2) keep the
wide
mask and continue to lower it as a blend/vmaskmov, and targets whose
vselect
condition is already vXi1 (e.g. AArch64 SVE, RISC-V RVV) are unaffected.

This fixes the crash at the source and lets the X86 LowerMSTORE keep its
invariant of only ever seeing a vXi1 mask (no target-specific
workaround).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
daunabomba pushed a commit to daunabomba/llvm-project that referenced this pull request Jun 17, 2026
foldToMaskedStore (added in
llvm@1c0ac80)
rewrites
  store(vselect(cond, x, load(ptr)), ptr) -> masked_store(x, ptr, cond)
passing the vselect condition straight through as the store mask. A
masked
store follows the IR convention of a vXi1 mask, but the condition can be
a
wider boolean vector. On AVX512F targets without VLX, a maxnum/minnum
store-back lowers the NaN test with a legacy packed (CMPP) comparison
whose
result is a vXi32/vXi64 vector, so the masked store is created with a
wide
mask and LowerMSTORE asserts:

  Assertion `Mask.getSimpleValueType().getScalarType() == MVT::i1 &&
             "Unexpected mask type"' failed.

When the matching vXi1 type is legal, narrow the mask to it before
building
the masked store. Targets where vXi1 is illegal (e.g. AVX/AVX2) keep the
wide
mask and continue to lower it as a blend/vmaskmov, and targets whose
vselect
condition is already vXi1 (e.g. AArch64 SVE, RISC-V RVV) are unaffected.

This fixes the crash at the source and lets the X86 LowerMSTORE keep its
invariant of only ever seeing a vXi1 mask (no target-specific
workaround).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit e6bd788)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:X86 llvm:SelectionDAG SelectionDAGISel as well

Projects

Development

Successfully merging this pull request may close these issues.

5 participants