Skip to content

[AMDGPU][True16] added Pre-RA hint to improve copy elimination #103366

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

broxigarchen
Copy link
Contributor

@broxigarchen broxigarchen commented Aug 13, 2024

The allocation order of 16 bit registers is vgpr0lo16, vgpr0hi16, vgpr1lo16, vgpr1hi16, vgpr2lo16.... We prefer (essentially require) that allocation order, because it uses the minimum number of registers. But when you have 16 bit data passing between 16 and 32 bit instructions you get lots of COPY.

This patch teach the compiler that a COPY of a 16-bit value from a 32 bit register to a lo-half 16 bit register is free, to a hi-half 16 bit register is not.

This might get improved to coalescing with additional cases, and perhaps as an alternative to the RA hints. For now upstreaming this solution first.

@llvmbot
Copy link
Member

llvmbot commented Aug 13, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Brox Chen (broxigarchen)

Changes

Patch is 27.39 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/103366.diff

7 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp (+43)
  • (modified) llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp (+67)
  • (modified) llvm/lib/Target/AMDGPU/SIRegisterInfo.h (+12)
  • (modified) llvm/test/CodeGen/AMDGPU/fadd.f16.ll (+1-3)
  • (modified) llvm/test/CodeGen/AMDGPU/llvm.ceil.f16.ll (+2-5)
  • (modified) llvm/test/CodeGen/AMDGPU/llvm.floor.f16.ll (+2-5)
  • (modified) llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll (+54-105)
diff --git a/llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp b/llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp
index 4467836cffc56..c7f3fb872c1a0 100644
--- a/llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp
@@ -22,11 +22,21 @@
 /// although the same shall be possible with other register classes and
 /// instructions if necessary.
 ///
+/// This pass also adds register allocation hints to COPY.
+/// The hints will be post-processed by SIRegisterInfo::getRegAllocationHints.
+/// When using True16, we often see COPY moving a 16-bit value between a VGPR_32
+/// This pass also adds register allocation hints to COPY.
+/// The hints will be post-processed by SIRegisterInfo::getRegAllocationHints.
+/// When using True16, we often see COPY moving a 16-bit value between a VGPR_32
+/// and a VGPR_16. If we use the VGPR_16 that corresponds to the lo16 bits of
+/// the VGPR_32, the COPY can be completely eliminated.
+///
 //===----------------------------------------------------------------------===//
 
 #include "AMDGPU.h"
 #include "GCNSubtarget.h"
 #include "MCTargetDesc/AMDGPUMCTargetDesc.h"
+#include "SIRegisterInfo.h"
 #include "llvm/CodeGen/LiveIntervals.h"
 #include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/InitializePasses.h"
@@ -236,5 +246,38 @@ bool GCNPreRAOptimizations::runOnMachineFunction(MachineFunction &MF) {
     Changed |= processReg(Reg);
   }
 
+  if (!ST.useRealTrue16Insts())
+    return Changed;
+
+  // Add RA hints to improve True16 COPY elimination.
+  for (const MachineBasicBlock &MBB : MF) {
+    for (const MachineInstr &MI : MBB) {
+      if (MI.getOpcode() != AMDGPU::COPY)
+        continue;
+      Register Dst = MI.getOperand(0).getReg();
+      Register Src = MI.getOperand(1).getReg();
+      if (Dst.isVirtual() &&
+          MRI->getRegClass(Dst) == &AMDGPU::VGPR_16RegClass &&
+          Src.isPhysical() &&
+          TRI->getRegClassForReg(*MRI, Src) == &AMDGPU::VGPR_32RegClass)
+        MRI->setRegAllocationHint(Dst, 0, TRI->getSubReg(Src, AMDGPU::lo16));
+      if (Src.isVirtual() &&
+          MRI->getRegClass(Src) == &AMDGPU::VGPR_16RegClass &&
+          Dst.isPhysical() &&
+          TRI->getRegClassForReg(*MRI, Dst) == &AMDGPU::VGPR_32RegClass)
+        MRI->setRegAllocationHint(Src, 0, TRI->getSubReg(Dst, AMDGPU::lo16));
+      if (!Dst.isVirtual() || !Src.isVirtual())
+        continue;
+      if (MRI->getRegClass(Dst) == &AMDGPU::VGPR_32RegClass &&
+          MRI->getRegClass(Src) == &AMDGPU::VGPR_16RegClass) {
+        MRI->setRegAllocationHint(Dst, AMDGPURI::Size32, Src);
+        MRI->setRegAllocationHint(Src, AMDGPURI::Size16, Dst);
+      }
+      if (MRI->getRegClass(Dst) == &AMDGPU::VGPR_16RegClass &&
+          MRI->getRegClass(Src) == &AMDGPU::VGPR_32RegClass)
+        MRI->setRegAllocationHint(Dst, AMDGPURI::Size16, Src);
+    }
+  }
+
   return Changed;
 }
diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp b/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
index ee72837a50fc4..4e5fa782345cc 100644
--- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
@@ -3327,6 +3327,73 @@ const int *SIRegisterInfo::getRegUnitPressureSets(unsigned RegUnit) const {
   return AMDGPUGenRegisterInfo::getRegUnitPressureSets(RegUnit);
 }
 
+bool SIRegisterInfo::getRegAllocationHints(Register VirtReg,
+                                           ArrayRef<MCPhysReg> Order,
+                                           SmallVectorImpl<MCPhysReg> &Hints,
+                                           const MachineFunction &MF,
+                                           const VirtRegMap *VRM,
+                                           const LiveRegMatrix *Matrix) const {
+
+  const MachineRegisterInfo &MRI = MF.getRegInfo();
+  const SIRegisterInfo *TRI = ST.getRegisterInfo();
+
+  std::pair<unsigned, Register> Hint = MRI.getRegAllocationHint(VirtReg);
+
+  switch (Hint.first) {
+  case AMDGPURI::Size32: {
+    Register Paired = Hint.second;
+    assert(Paired);
+    Register PairedPhys;
+    if (Paired.isPhysical()) {
+      PairedPhys =
+          getMatchingSuperReg(Paired, AMDGPU::lo16, &AMDGPU::VGPR_32RegClass);
+    } else if (VRM && VRM->hasPhys(Paired)) {
+      PairedPhys = getMatchingSuperReg(VRM->getPhys(Paired), AMDGPU::lo16,
+                                       &AMDGPU::VGPR_32RegClass);
+    }
+
+    // Prefer the paired physreg.
+    if (PairedPhys)
+      // isLo(Paired) is implicitly true here from the API of
+      // getMatchingSuperReg.
+      Hints.push_back(PairedPhys);
+    return false;
+  }
+  case AMDGPURI::Size16: {
+    Register Paired = Hint.second;
+    assert(Paired);
+    Register PairedPhys;
+    if (Paired.isPhysical()) {
+      PairedPhys = TRI->getSubReg(Paired, AMDGPU::lo16);
+    } else if (VRM && VRM->hasPhys(Paired)) {
+      PairedPhys = TRI->getSubReg(VRM->getPhys(Paired), AMDGPU::lo16);
+    }
+
+    // First prefer the paired physreg.
+    if (PairedPhys)
+      Hints.push_back(PairedPhys);
+    else {
+      // Add all the lo16 physregs.
+      // When the Paired operand has not yet been assigned a physreg it is
+      // better to try putting VirtReg in a lo16 register, because possibly
+      // later Paired can be assigned to the overlapping register and the COPY
+      // can be eliminated.
+      for (MCPhysReg PhysReg : Order) {
+        if (PhysReg == PairedPhys || AMDGPU::isHi(PhysReg, *this))
+          continue;
+        if (AMDGPU::VGPR_16RegClass.contains(PhysReg) &&
+            !MRI.isReserved(PhysReg))
+          Hints.push_back(PhysReg);
+      }
+    }
+    return false;
+  }
+  default:
+    return TargetRegisterInfo::getRegAllocationHints(VirtReg, Order, Hints, MF,
+                                                     VRM);
+  }
+}
+
 MCRegister SIRegisterInfo::getReturnAddressReg(const MachineFunction &MF) const {
   // Not a callee saved register.
   return AMDGPU::SGPR30_SGPR31;
diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h
index 88d5686720985..622e86d03048a 100644
--- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h
+++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h
@@ -29,6 +29,13 @@ class LiveRegUnits;
 class RegisterBank;
 struct SGPRSpillBuilder;
 
+/// Register allocation hint types. Helps eliminate unneeded COPY with True16
+namespace AMDGPURI {
+
+enum { Size16 = 1, Size32 = 2 };
+
+} // end namespace AMDGPURI
+
 class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
 private:
   const GCNSubtarget &ST;
@@ -326,6 +333,11 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
   unsigned getRegPressureSetLimit(const MachineFunction &MF,
                                   unsigned Idx) const override;
 
+  bool getRegAllocationHints(Register VirtReg, ArrayRef<MCPhysReg> Order,
+                             SmallVectorImpl<MCPhysReg> &Hints,
+                             const MachineFunction &MF, const VirtRegMap *VRM,
+                             const LiveRegMatrix *Matrix) const override;
+
   const int *getRegUnitPressureSets(unsigned RegUnit) const override;
 
   MCRegister getReturnAddressReg(const MachineFunction &MF) const;
diff --git a/llvm/test/CodeGen/AMDGPU/fadd.f16.ll b/llvm/test/CodeGen/AMDGPU/fadd.f16.ll
index 1094b768f1bd1..64329c657b814 100644
--- a/llvm/test/CodeGen/AMDGPU/fadd.f16.ll
+++ b/llvm/test/CodeGen/AMDGPU/fadd.f16.ll
@@ -76,9 +76,7 @@ define amdgpu_kernel void @fadd_f16(
 ; GFX11-SDAG-NEXT:    s_waitcnt vmcnt(0)
 ; GFX11-SDAG-NEXT:    buffer_load_u16 v1, off, s[0:3], 0 glc dlc
 ; GFX11-SDAG-NEXT:    s_waitcnt vmcnt(0)
-; GFX11-SDAG-NEXT:    v_mov_b16_e32 v0.h, v1.l
-; GFX11-SDAG-NEXT:    s_delay_alu instid0(VALU_DEP_1)
-; GFX11-SDAG-NEXT:    v_add_f16_e32 v0.l, v0.l, v0.h
+; GFX11-SDAG-NEXT:    v_add_f16_e32 v0.l, v0.l, v1.l
 ; GFX11-SDAG-NEXT:    buffer_store_b16 v0, off, s[8:11], 0
 ; GFX11-SDAG-NEXT:    s_nop 0
 ; GFX11-SDAG-NEXT:    s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
diff --git a/llvm/test/CodeGen/AMDGPU/llvm.ceil.f16.ll b/llvm/test/CodeGen/AMDGPU/llvm.ceil.f16.ll
index 4faa482ede59f..24412cff02ff2 100644
--- a/llvm/test/CodeGen/AMDGPU/llvm.ceil.f16.ll
+++ b/llvm/test/CodeGen/AMDGPU/llvm.ceil.f16.ll
@@ -164,12 +164,9 @@ define amdgpu_kernel void @ceil_v2f16(
 ; GFX11-NEXT:    s_waitcnt vmcnt(0)
 ; GFX11-NEXT:    v_lshrrev_b32_e32 v1, 16, v0
 ; GFX11-NEXT:    v_ceil_f16_e32 v0.l, v0.l
-; GFX11-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-NEXT:    v_ceil_f16_e32 v0.h, v1.l
-; GFX11-NEXT:    v_mov_b16_e32 v1.l, v0.l
 ; GFX11-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
-; GFX11-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-NEXT:    v_pack_b32_f16 v0, v1, v0
+; GFX11-NEXT:    v_ceil_f16_e32 v1.l, v1.l
+; GFX11-NEXT:    v_pack_b32_f16 v0, v0, v1
 ; GFX11-NEXT:    buffer_store_b32 v0, off, s[4:7], 0
 ; GFX11-NEXT:    s_nop 0
 ; GFX11-NEXT:    s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
diff --git a/llvm/test/CodeGen/AMDGPU/llvm.floor.f16.ll b/llvm/test/CodeGen/AMDGPU/llvm.floor.f16.ll
index 61f6c9f7f0e6f..c9d05c886d99b 100644
--- a/llvm/test/CodeGen/AMDGPU/llvm.floor.f16.ll
+++ b/llvm/test/CodeGen/AMDGPU/llvm.floor.f16.ll
@@ -165,12 +165,9 @@ define amdgpu_kernel void @floor_v2f16(
 ; GFX11-NEXT:    s_waitcnt vmcnt(0)
 ; GFX11-NEXT:    v_lshrrev_b32_e32 v1, 16, v0
 ; GFX11-NEXT:    v_floor_f16_e32 v0.l, v0.l
-; GFX11-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-NEXT:    v_floor_f16_e32 v0.h, v1.l
-; GFX11-NEXT:    v_mov_b16_e32 v1.l, v0.l
 ; GFX11-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
-; GFX11-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-NEXT:    v_pack_b32_f16 v0, v1, v0
+; GFX11-NEXT:    v_floor_f16_e32 v1.l, v1.l
+; GFX11-NEXT:    v_pack_b32_f16 v0, v0, v1
 ; GFX11-NEXT:    buffer_store_b32 v0, off, s[4:7], 0
 ; GFX11-NEXT:    s_nop 0
 ; GFX11-NEXT:    s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
diff --git a/llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll b/llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll
index 72e86f1f6f999..4c3071be3d28f 100644
--- a/llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll
+++ b/llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll
@@ -217,9 +217,8 @@ define half @test_ldexp_f16_i8(half %a, i8 %b) {
 ; GFX11-SDAG-TRUE16:       ; %bb.0:
 ; GFX11-SDAG-TRUE16-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
 ; GFX11-SDAG-TRUE16-NEXT:    v_bfe_i32 v1, v1, 0, 8
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v0.h, v1.l
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v0.h
+; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1)
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
 ; GFX11-SDAG-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-SDAG-FAKE16-LABEL: test_ldexp_f16_i8:
@@ -307,9 +306,7 @@ define half @test_ldexp_f16_i16(half %a, i16 %b) {
 ; GFX11-SDAG-TRUE16-LABEL: test_ldexp_f16_i16:
 ; GFX11-SDAG-TRUE16:       ; %bb.0:
 ; GFX11-SDAG-TRUE16-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v0.h, v1.l
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1)
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v0.h
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
 ; GFX11-SDAG-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-SDAG-FAKE16-LABEL: test_ldexp_f16_i16:
@@ -477,14 +474,11 @@ define <2 x half> @test_ldexp_v2f16_v2i32(<2 x half> %a, <2 x i32> %b) {
 ; GFX11-SDAG-TRUE16-NEXT:    v_lshrrev_b32_e32 v3, 16, v0
 ; GFX11-SDAG-TRUE16-NEXT:    v_med3_i32 v2, v2, s0, 0x7fff
 ; GFX11-SDAG-TRUE16-NEXT:    v_med3_i32 v1, v1, s0, 0x7fff
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v3.l, v2.l
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
 ; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v1.l, v0.l
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v3.l, v2.l
 ; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1)
-; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v1, v0
+; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v0, v1
 ; GFX11-SDAG-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-SDAG-FAKE16-LABEL: test_ldexp_v2f16_v2i32:
@@ -546,13 +540,10 @@ define <2 x half> @test_ldexp_v2f16_v2i32(<2 x half> %a, <2 x i32> %b) {
 ; GFX11-GISEL-TRUE16-NEXT:    v_med3_i32 v2, 0xffff8000, v2, v3
 ; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v4.l, v2.l
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v1.l, v0.l
-; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v1, 0xffff, v1
+; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v4.l, v2.l
+; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v0, 0xffff, v0
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1)
-; GFX11-GISEL-TRUE16-NEXT:    v_lshl_or_b32 v0, v0, 16, v1
+; GFX11-GISEL-TRUE16-NEXT:    v_lshl_or_b32 v0, v1, 16, v0
 ; GFX11-GISEL-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-GISEL-FAKE16-LABEL: test_ldexp_v2f16_v2i32:
@@ -610,12 +601,9 @@ define <2 x half> @test_ldexp_v2f16_v2i16(<2 x half> %a, <2 x i16> %b) {
 ; GFX11-SDAG-TRUE16-NEXT:    v_lshrrev_b32_e32 v2, 16, v1
 ; GFX11-SDAG-TRUE16-NEXT:    v_lshrrev_b32_e32 v3, 16, v0
 ; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v3.l, v2.l
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v1.l, v0.l
 ; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v1, v0
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v3.l, v2.l
+; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v0, v1
 ; GFX11-SDAG-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-SDAG-FAKE16-LABEL: test_ldexp_v2f16_v2i16:
@@ -665,13 +653,10 @@ define <2 x half> @test_ldexp_v2f16_v2i16(<2 x half> %a, <2 x i16> %b) {
 ; GFX11-GISEL-TRUE16-NEXT:    v_lshrrev_b32_e32 v3, 16, v1
 ; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v1.l
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v2.l, v3.l
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v1.l, v0.l
-; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v1, 0xffff, v1
+; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v2.l, v3.l
+; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v0, 0xffff, v0
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1)
-; GFX11-GISEL-TRUE16-NEXT:    v_lshl_or_b32 v0, v0, 16, v1
+; GFX11-GISEL-TRUE16-NEXT:    v_lshl_or_b32 v0, v1, 16, v0
 ; GFX11-GISEL-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-GISEL-FAKE16-LABEL: test_ldexp_v2f16_v2i16:
@@ -740,16 +725,13 @@ define <3 x half> @test_ldexp_v3f16_v3i32(<3 x half> %a, <3 x i32> %b) {
 ; GFX11-SDAG-TRUE16-NEXT:    v_lshrrev_b32_e32 v5, 16, v0
 ; GFX11-SDAG-TRUE16-NEXT:    v_med3_i32 v3, v3, s0, 0x7fff
 ; GFX11-SDAG-TRUE16-NEXT:    v_med3_i32 v2, v2, s0, 0x7fff
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v5.l, v3.l
+; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
 ; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v2.l
-; GFX11-SDAG-TRUE16-NEXT:    v_med3_i32 v2, v4, s0, 0x7fff
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v3.l, v0.l
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v1.l, v2.l
-; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v3, v0
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v2.l, v5.l, v3.l
+; GFX11-SDAG-TRUE16-NEXT:    v_med3_i32 v3, v4, s0, 0x7fff
+; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
+; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v0, v2
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v1.l, v3.l
 ; GFX11-SDAG-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-SDAG-FAKE16-LABEL: test_ldexp_v3f16_v3i32:
@@ -820,15 +802,12 @@ define <3 x half> @test_ldexp_v3f16_v3i32(<3 x half> %a, <3 x i32> %b) {
 ; GFX11-GISEL-TRUE16-NEXT:    v_med3_i32 v3, 0xffff8000, v3, v5
 ; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v2.l
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
-; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v6.l, v3.l
+; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v2.l, v6.l, v3.l
 ; GFX11-GISEL-TRUE16-NEXT:    v_med3_i32 v3, 0xffff8000, v4, v5
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v2.l, v0.l
-; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
+; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v0, 0xffff, v0
+; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
 ; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v1.l, v3.l
-; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
-; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v2, 0xffff, v2
-; GFX11-GISEL-TRUE16-NEXT:    v_lshl_or_b32 v0, v0, 16, v2
+; GFX11-GISEL-TRUE16-NEXT:    v_lshl_or_b32 v0, v2, 16, v0
 ; GFX11-GISEL-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-GISEL-FAKE16-LABEL: test_ldexp_v3f16_v3i32:
@@ -895,12 +874,9 @@ define <3 x half> @test_ldexp_v3f16_v3i16(<3 x half> %a, <3 x i16> %b) {
 ; GFX11-SDAG-TRUE16-NEXT:    v_lshrrev_b32_e32 v5, 16, v0
 ; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v2.l
 ; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v1.l, v3.l
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
-; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v5.l, v4.l
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v2.l, v0.l
-; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
-; GFX11-SDAG-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v2, v0
+; GFX11-SDAG-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
+; GFX11-SDAG-TRUE16-NEXT:    v_ldexp_f16_e32 v2.l, v5.l, v4.l
+; GFX11-SDAG-TRUE16-NEXT:    v_pack_b32_f16 v0, v0, v2
 ; GFX11-SDAG-TRUE16-NEXT:    s_setpc_b64 s[30:31]
 ;
 ; GFX11-SDAG-FAKE16-LABEL: test_ldexp_v3f16_v3i16:
@@ -958,13 +934,10 @@ define <3 x half> @test_ldexp_v3f16_v3i16(<3 x half> %a, <3 x i16> %b) {
 ; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.l, v0.l, v2.l
 ; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v1.l, v1.l, v3.l
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
-; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v0.h, v4.l, v5.l
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v2.l, v0.l
-; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
-; GFX11-GISEL-TRUE16-NEXT:    v_mov_b16_e32 v0.l, v0.h
-; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v2, 0xffff, v2
+; GFX11-GISEL-TRUE16-NEXT:    v_ldexp_f16_e32 v2.l, v4.l, v5.l
+; GFX11-GISEL-TRUE16-NEXT:    v_and_b32_e32 v0, 0xffff, v0
 ; GFX11-GISEL-TRUE16-NEXT:    s_delay_alu instid0(VALU_DEP_1)
-; GFX11-GISEL-TRUE16-NEXT:  ...
[truncated]

@broxigarchen
Copy link
Contributor Author

Hi @arsenm @Sisyph This PR is opened from #102620 (comment)

@arsenm
Copy link
Contributor

arsenm commented Aug 17, 2024

The allocation order of 16 bit registers is vgpr0lo16, vgpr0hi16, vgpr1lo16, vgpr1hi16, vgpr2lo16.... We prefer (essentially require) that allocation order, because it uses the minimum number of registers. But when you have 16 bit data passing between 16 and 32 bit instructions you get lots of COPY.

Is this not already the order in the classes? You can explicitly override the allocation order on the register class definition

@broxigarchen
Copy link
Contributor Author

The allocation order of 16 bit registers is vgpr0lo16, vgpr0hi16, vgpr1lo16, vgpr1hi16, vgpr2lo16.... We prefer (essentially require) that allocation order, because it uses the minimum number of registers. But when you have 16 bit data passing between 16 and 32 bit instructions you get lots of COPY.

Is this not already the order in the classes? You can explicitly override the allocation order on the register class definition

I think it's already implemented in this way. This patch is to address the additional COPY issue when 16bit data being passed between 16 and 32bit instructions

@arsenm
Copy link
Contributor

arsenm commented Aug 17, 2024

What if you added CostPerUse to the high halves of the registers?

@broxigarchen
Copy link
Contributor Author

What if you added CostPerUse to the high halves of the registers?

Thanks Matt I will try this. I will lower the priortiy of this PR since the upstreaming of the other true16 changes will be more urgent

@Sisyph
Copy link
Contributor

Sisyph commented Mar 5, 2025

I don't think CostPerUse is the right solution, because we want to take use instruction context into account to decide whether a value should go into v.l or v.h. CostPerUse would tell you to always use .l over .h. We want to use .h whenever possible, because that's the way to reduce register pressure, unless the value in the register would later be forced into a VGPR32 (by being used in a 32-bit alu)

@broxigarchen broxigarchen force-pushed the main-merge-true16-logical branch from 889b4cb to 0f31a55 Compare March 5, 2025 21:21
@broxigarchen broxigarchen marked this pull request as ready for review March 5, 2025 21:22
@broxigarchen
Copy link
Contributor Author

rebased and update tests

Comment on lines +25 to +27
/// This pass also adds register allocation hints to COPY.
/// The hints will be post-processed by SIRegisterInfo::getRegAllocationHints.
/// When using True16, we often see COPY moving a 16-bit value between a VGPR_32
Copy link
Contributor

Choose a reason for hiding this comment

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

These three lines are duplicated below.

Copy link
Contributor

@jayfoad jayfoad left a comment

Choose a reason for hiding this comment

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

Given that 16-bit values can live in either VGPR_16 or VGPR_32, this approach seems reasonable to me.

Eventually I think we should aim to clean this up such that 16-bit values always live in VGPR_16.

@broxigarchen broxigarchen force-pushed the main-merge-true16-logical branch from 0f31a55 to ca4d90b Compare March 12, 2025 19:00
@broxigarchen
Copy link
Contributor Author

broxigarchen commented Mar 12, 2025

rebased and fixed test

@broxigarchen broxigarchen merged commit 9d7e1d9 into llvm:main Mar 12, 2025
9 of 10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building llvm at step 8 "Add check check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/llc < /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/llc < /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/llc < /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building llvm at step 8 "Add check check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/llc < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/llc < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/llc < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b2 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-dev-x86-64-b1/build/bin/llc < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/ml-opt-dev-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /b/ml-opt-dev-x86-64-b1/build/bin/llc < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/ml-opt-dev-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /b/ml-opt-dev-x86-64-b1/build/bin/llc < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/ml-opt-dev-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-rel-x86-64-b1/build/bin/llc < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/ml-opt-rel-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /b/ml-opt-rel-x86-64-b1/build/bin/llc < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/ml-opt-rel-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /b/ml-opt-rel-x86-64-b1/build/bin/llc < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/ml-opt-rel-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-devrel-x86-64 running on ml-opt-devrel-x86-64-b2 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-devrel-x86-64-b1/build/bin/llc < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/ml-opt-devrel-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /b/ml-opt-devrel-x86-64-b1/build/bin/llc < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/ml-opt-devrel-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /b/ml-opt-devrel-x86-64-b1/build/bin/llc < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/ml-opt-devrel-x86-64-b1/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/llc < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/llc < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/llc < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: �[0m�[0;1;31merror: �[0m�[1mGFX11-NEXT: is not on the line after the previous match
�[0m; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
�[0;1;32m              ^
�[0m�[1m<stdin>:79:2: �[0m�[0;1;30mnote: �[0m�[1m'next' match was here
�[0m s_bfe_u32 s1, s0, 0x10010
�[0;1;32m ^
�[0m�[1m<stdin>:77:32: �[0m�[0;1;30mnote: �[0m�[1mprevious match ended here
�[0m v_cmp_u_f32_e32 vcc_lo, v0, v0
�[0;1;32m                               ^
�[0m�[1m<stdin>:78:1: �[0m�[0;1;30mnote: �[0m�[1mnon-matching line after previous match is here
�[0m s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
�[0;1;32m^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: �[0m�[0;1;31merror: �[0m�[1mGFX11-NEXT: expected string not found in input
�[0m; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
�[0;1;32m              ^
�[0m�[1m<stdin>:212:28: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m v_cmp_u_f32_e64 s1, v0, v0
�[0;1;32m                           ^
�[0m�[1m<stdin>:213:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: �[0m�[0;1;31merror: �[0m�[1mGFX11-NEXT: is not on the line after the previous match
�[0m; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
�[0;1;32m              ^
�[0m�[1m<stdin>:705:2: �[0m�[0;1;30mnote: �[0m�[1m'next' match was here
�[0m s_bfe_u32 s1, s0, 0x10010
�[0;1;32m ^
�[0m�[1m<stdin>:703:32: �[0m�[0;1;30mnote: �[0m�[1mprevious match ended here
�[0m v_cmp_u_f32_e32 vcc_lo, v0, v0
�[0;1;32m                               ^
�[0m�[1m<stdin>:704:1: �[0m�[0;1;30mnote: �[0m�[1mnon-matching line after previous match is here
�[0m s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
�[0;1;32m^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: �[0m�[0;1;31merror: �[0m�[1mGFX11-NEXT: expected string not found in input
�[0m; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
�[0;1;32m              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder clang-debian-cpp20 running on clang-debian-cpp20 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/llc < /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/llc < /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/llc < /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@broxigarchen
Copy link
Contributor Author

broxigarchen commented Mar 12, 2025

Not sure why this hit the buildbot as I just rebased and update the patch. Hmmmm, I guess I might be unlucky that some other PR just get merged before I merged this one.

Working on getting up a fix

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-test-suite running on ppc64le-clang-test-suite while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-8-cmake-build-only running on rocm-docker-rhel-8 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...

  failed with:

   ninja: warning: bad deps log signature or version; starting over

  ninja: error: failed recompaction: No such file or directory



CMake Generate step failed.  Build files cannot be regenerated correctly.
FAILED: runtimes/builtins-stamps/builtins-configure /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-stamps/builtins-configure 
cd /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-bins && /usr/bin/cmake --no-warn-unused-cli -DCMAKE_C_COMPILER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang -DCMAKE_CXX_COMPILER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ -DCMAKE_ASM_COMPILER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang -DCMAKE_LINKER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/ld.lld -DCMAKE_AR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-ar -DCMAKE_RANLIB=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-ranlib -DCMAKE_NM=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-nm -DCMAKE_OBJDUMP=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-objdump -DCMAKE_OBJCOPY=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-objcopy -DCMAKE_STRIP=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-strip -DCMAKE_READELF=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_Fortran_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_INSTALL_PREFIX=/tmp/llvm.install.test -DLLVM_BINARY_DIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build -DLLVM_CONFIG_PATH=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF "-DLLVM_LIT_ARGS=-v --show-unsupported --timeout 100 --show-xfail -j 32" -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=21.0.0git -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLLVM_LIBRARY_OUTPUT_INTDIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib -DLLVM_RUNTIME_OUTPUT_INTDIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON -DLLVM_CMAKE_DIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= -GNinja -C/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/projects/builtins/tmp/builtins-cache-Release.cmake -S /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/runtimes/../../compiler-rt/lib/builtins -B /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-bins && /usr/bin/cmake -E touch /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-stamps/builtins-configure
[7600/7743] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
[7601/7743] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...

  failed with:

   ninja: warning: bad deps log signature or version; starting over

  ninja: error: failed recompaction: No such file or directory



CMake Generate step failed.  Build files cannot be regenerated correctly.
FAILED: runtimes/builtins-stamps/builtins-configure /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-stamps/builtins-configure 
cd /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-bins && /usr/bin/cmake --no-warn-unused-cli -DCMAKE_C_COMPILER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang -DCMAKE_CXX_COMPILER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ -DCMAKE_ASM_COMPILER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang -DCMAKE_LINKER=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/ld.lld -DCMAKE_AR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-ar -DCMAKE_RANLIB=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-ranlib -DCMAKE_NM=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-nm -DCMAKE_OBJDUMP=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-objdump -DCMAKE_OBJCOPY=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-objcopy -DCMAKE_STRIP=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-strip -DCMAKE_READELF=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_Fortran_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_INSTALL_PREFIX=/tmp/llvm.install.test -DLLVM_BINARY_DIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build -DLLVM_CONFIG_PATH=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF "-DLLVM_LIT_ARGS=-v --show-unsupported --timeout 100 --show-xfail -j 32" -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=21.0.0git -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLLVM_LIBRARY_OUTPUT_INTDIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib -DLLVM_RUNTIME_OUTPUT_INTDIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON -DLLVM_CMAKE_DIR=/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= -GNinja -C/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/projects/builtins/tmp/builtins-cache-Release.cmake -S /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/runtimes/../../compiler-rt/lib/builtins -B /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-bins && /usr/bin/cmake -E touch /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/builtins-stamps/builtins-configure
[7600/7743] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
[7601/7743] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=946.790615

@broxigarchen
Copy link
Contributor Author

Fix is up here #131028

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-lld-multistage-test running on ppc64le-lld-multistage-test while building llvm at step 7 "test-build-stage1-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-stage1-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...
Step 13 (test-build-stage2-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder premerge-monolithic-windows running on premerge-windows-1 while building llvm at step 8 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 8 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llc.exe < C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll -check-prefix=GFX7
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llc.exe' -mtriple=amdgcn -mcpu=hawaii
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll' -check-prefix=GFX7
# RUN: at line 3
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llc.exe < C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll -check-prefix=GFX9
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llc.exe' -mtriple=amdgcn -mcpu=gfx942
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll' -check-prefix=GFX9
# RUN: at line 4
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llc.exe < C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll -check-prefix=GFX11
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llc.exe' -mtriple=amdgcn -mcpu=gfx1100
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll' -check-prefix=GFX11
# .---command stderr------------
# | C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
# | ; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
# |               ^
# | <stdin>:79:2: note: 'next' match was here
# |  s_bfe_u32 s1, s0, 0x10010
# |  ^
# | <stdin>:77:32: note: previous match ended here
# |  v_cmp_u_f32_e32 vcc_lo, v0, v0
# |                                ^
# | <stdin>:78:1: note: non-matching line after previous match is here
# |  s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
# | ^
# | C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
# | ; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
# |               ^
# | <stdin>:212:28: note: scanning from here
# |  v_cmp_u_f32_e64 s1, v0, v0
# |                            ^
# | <stdin>:213:2: note: possible intended match here
# |  s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
# |  ^
# | C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\CodeGen\AMDGPU\i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
# | ; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
# |               ^
# | <stdin>:705:2: note: 'next' match was here
# |  s_bfe_u32 s1, s0, 0x10010
# |  ^
# | <stdin>:703:32: note: previous match ended here
# |  v_cmp_u_f32_e32 vcc_lo, v0, v0
# |                                ^
# | <stdin>:704:1: note: non-matching line after previous match is here
# |  s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
...

broxigarchen added a commit that referenced this pull request Mar 12, 2025
This is a NFC patch

#103366 hit a buildbot failure
with i1-to-bf16.ll. Update the test to fix the build.

Also remove duplicated comments added in
#103366
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vls running on linaro-g3-02 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/llc < /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/llc < /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/llc < /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla running on linaro-g4-01 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/llc < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/llc < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/llc < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Mar 12, 2025
… (#131028)

This is a NFC patch

llvm/llvm-project#103366 hit a buildbot failure
with i1-to-bf16.ll. Update the test to fix the build.

Also remove duplicated comments added in
llvm/llvm-project#103366
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-multistage running on ppc64le-clang-multistage-test while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...
Step 11 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/llc < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

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

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

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

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
Step 11 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87039 tests, 72 workers --
Testing:  0.. 10.. 20.. 30
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (29998 of 87039)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
Step 13 (stage3/ubsan check) failure: stage3/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 84100 tests, 72 workers --
Testing:  0.. 10.. 20.. 30
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (29990 of 84100)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

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

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

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

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87036 tests, 72 workers --
Testing:  0.. 10.. 20.. 30
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (29995 of 87036)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 84100 tests, 72 workers --
Testing:  0.. 10.. 20.. 30
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (30006 of 84100)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-bootstrap-msan running on sanitizer-buildbot5 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 89520 tests, 88 workers --
Testing:  0.. 10.. 20.. 30
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (31745 of 89520)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 89520 tests, 88 workers --
Testing:  0.. 10.. 20.. 30
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (31745 of 89520)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86501 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.
FAIL: LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll (31765 of 86501)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc -mtriple=amdgcn -mcpu=gfx942
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
RUN: at line 3: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 13, 2025

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building llvm at step 7 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /build/buildbot/premerge-monolithic-linux/build/bin/llc < /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /build/buildbot/premerge-monolithic-linux/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /build/buildbot/premerge-monolithic-linux/build/bin/llc < /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /build/buildbot/premerge-monolithic-linux/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /build/buildbot/premerge-monolithic-linux/build/bin/llc < /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /build/buildbot/premerge-monolithic-linux/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

Comment on lines +276 to +280
if (Dst.isVirtual() &&
MRI->getRegClass(Dst) == &AMDGPU::VGPR_16RegClass &&
Src.isPhysical() &&
TRI->getRegClassForReg(*MRI, Src) == &AMDGPU::VGPR_32RegClass)
MRI->setRegAllocationHint(Dst, 0, TRI->getSubReg(Src, AMDGPU::lo16));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this situation should be a hard machine verifier error

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 13, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/i1-to-bf16.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/llvm-x86_64-debian-dylib/build/bin/llc < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=hawaii | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX7
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn -mcpu=hawaii
RUN: at line 3: /b/1/llvm-x86_64-debian-dylib/build/bin/llc < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx942 | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn -mcpu=gfx942
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX9
RUN: at line 4: /b/1/llvm-x86_64-debian-dylib/build/bin/llc < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -mtriple=amdgcn -mcpu=gfx1100 | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll -check-prefix=GFX11
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn -mcpu=gfx1100
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:111:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:79:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:77:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:78:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:308:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
<stdin>:212:28: note: scanning from here
 v_cmp_u_f32_e64 s1, v0, v0
                           ^
<stdin>:213:2: note: possible intended match here
 s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1164:15: error: GFX11-NEXT: is not on the line after the previous match
; GFX11-NEXT: s_bfe_u32 s1, s0, 0x10010
              ^
<stdin>:705:2: note: 'next' match was here
 s_bfe_u32 s1, s0, 0x10010
 ^
<stdin>:703:32: note: previous match ended here
 v_cmp_u_f32_e32 vcc_lo, v0, v0
                               ^
<stdin>:704:1: note: non-matching line after previous match is here
 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/i1-to-bf16.ll:1361:15: error: GFX11-NEXT: expected string not found in input
; GFX11-NEXT: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
              ^
...

frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
…103366)

The allocation order of 16 bit registers is vgpr0lo16, vgpr0hi16,
vgpr1lo16, vgpr1hi16, vgpr2lo16.... We prefer (essentially require) that
allocation order, because it uses the minimum number of registers. But
when you have 16 bit data passing between 16 and 32 bit instructions you
get lots of COPY.

This patch teach the compiler that a COPY of a 16-bit value from a 32
bit register to a lo-half 16 bit register is free, to a hi-half 16 bit
register is not.

This might get improved to coalescing with additional cases, and perhaps
as an alternative to the RA hints. For now upstreaming this solution
first.
frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
This is a NFC patch

llvm#103366 hit a buildbot failure
with i1-to-bf16.ll. Update the test to fix the build.

Also remove duplicated comments added in
llvm#103366
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants