Skip to content

Conversation

@zhaoqi5
Copy link
Contributor

@zhaoqi5 zhaoqi5 commented Nov 6, 2025

Test cases are similar as riscv.

@llvmbot
Copy link
Member

llvmbot commented Nov 6, 2025

@llvm/pr-subscribers-backend-loongarch

Author: ZhaoQi (zhaoqi5)

Changes

Same test cases as riscv.


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

2 Files Affected:

  • (added) llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll (+1147)
  • (added) llvm/test/CodeGen/LoongArch/expandmemcmp.ll (+1227)
diff --git a/llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll b/llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll
new file mode 100644
index 0000000000000..82fe899bb795b
--- /dev/null
+++ b/llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll
@@ -0,0 +1,1147 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: sed 's/iGRLen/i32/g' %s | llc --mtriple=loongarch32 --mattr=+ual \
+; RUN:   | FileCheck %s --check-prefixes=CHECK,LA32,LA32-UAL
+; RUN: sed 's/iGRLen/i64/g' %s | llc --mtriple=loongarch64 --mattr=+ual \
+; RUN:   | FileCheck %s --check-prefixes=CHECK,LA64,LA64-UAL
+; RUN: sed 's/iGRLen/i32/g' %s | llc --mtriple=loongarch32 --mattr=-ual \
+; RUN:   | FileCheck %s --check-prefixes=CHECK,LA32,LA32-NUAL
+; RUN: sed 's/iGRLen/i64/g' %s | llc --mtriple=loongarch64 --mattr=-ual \
+; RUN:   | FileCheck %s --check-prefixes=CHECK,LA64,LA64-NUAL
+
+declare i32 @bcmp(ptr, ptr, iGRLen) nounwind readonly
+declare i32 @memcmp(ptr, ptr, iGRLen) nounwind readonly
+
+define i32 @bcmp_size_0(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_0:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    move $a2, $zero
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_0:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    move $a2, $zero
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 0)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_1(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_1:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 1
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_1:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 1
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 1)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_2(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_2:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 2
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_2:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 2
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 2)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_3(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_3:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 3
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_3:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 3
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 3)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_4(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_4:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 4
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_4:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 4
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 4)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_5(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_5:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 5
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_5:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 5
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 5)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_6(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_6:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 6
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_6:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 6
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 6)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_7(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_7:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 7
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_7:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 7
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 7)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_8(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_8:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 8
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_8:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 8
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 8)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_15(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_15:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 15
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_15:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 15
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 15)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_16(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_16:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 16
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_16:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 16
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 16)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_31(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_31:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 31
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_31:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 31
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 31)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_32(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_32:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 32
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_32:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 32
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 32)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_63(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_63:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 63
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_63:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 63
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 63)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_64(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_64:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 64
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_64:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 64
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 64)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_127(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_127:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 127
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_127:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 127
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 127)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_128(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_size_128:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 128
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_128:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 128
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 128)
+  ret i32 %bcmp
+}
+
+define i32 @bcmp_size_runtime(ptr %s1, ptr %s2, iGRLen %len) nounwind optsize {
+; LA32-LABEL: bcmp_size_runtime:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_size_runtime:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen %len)
+  ret i32 %bcmp
+}
+
+define i1 @bcmp_eq_zero(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_eq_zero:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 4
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    sltui $a0, $a0, 1
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_eq_zero:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 4
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    sltui $a0, $a0, 1
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 4)
+  %ret = icmp eq i32 %bcmp, 0
+  ret i1 %ret
+}
+
+define i1 @bcmp_lt_zero(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_lt_zero:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 4
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    srli.w $a0, $a0, 31
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_lt_zero:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 4
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    slti $a0, $a0, 0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 4)
+  %ret = icmp slt i32 %bcmp, 0
+  ret i1 %ret
+}
+
+define i1 @bcmp_gt_zero(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: bcmp_gt_zero:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 4
+; LA32-NEXT:    bl bcmp
+; LA32-NEXT:    slt $a0, $zero, $a0
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: bcmp_gt_zero:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT:    addi.d $sp, $sp, -16
+; LA64-NEXT:    st.d $ra, $sp, 8 # 8-byte Folded Spill
+; LA64-NEXT:    ori $a2, $zero, 4
+; LA64-NEXT:    pcaddu18i $ra, %call36(bcmp)
+; LA64-NEXT:    jirl $ra, $ra, 0
+; LA64-NEXT:    slt $a0, $zero, $a0
+; LA64-NEXT:    ld.d $ra, $sp, 8 # 8-byte Folded Reload
+; LA64-NEXT:    addi.d $sp, $sp, 16
+; LA64-NEXT:    ret
+entry:
+  %bcmp = call signext i32 @bcmp(ptr %s1, ptr %s2, iGRLen 4)
+  %ret = icmp sgt i32 %bcmp, 0
+  ret i1 %ret
+}
+
+define i32 @memcmp_size_0(ptr %s1, ptr %s2) nounwind optsize {
+; CHECK-LABEL: memcmp_size_0:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    move $a0, $zero
+; CHECK-NEXT:    ret
+entry:
+  %memcmp = call signext i32 @memcmp(ptr %s1, ptr %s2, iGRLen 0)
+  ret i32 %memcmp
+}
+
+define i32 @memcmp_size_1(ptr %s1, ptr %s2) nounwind optsize {
+; LA32-LABEL: memcmp_size_1:
+; LA32:       # %bb.0: # %entry
+; LA32-NEXT:    addi.w $sp, $sp, -16
+; LA32-NEXT:    st.w $ra, $sp, 12 # 4-byte Folded Spill
+; LA32-NEXT:    ori $a2, $zero, 1
+; LA32-NEXT:    bl memcmp
+; LA32-NEXT:    ld.w $ra, $sp, 12 # 4-byte Folded Reload
+; LA32-NEXT:    addi.w $sp, $sp, 16
+; LA32-NEXT:    ret
+;
+; LA64-LABEL: memcmp_size_1:
+; LA64:       # %bb.0: # %entry
+; LA64-NEXT: ...
[truncated]

@zhaoqi5 zhaoqi5 merged commit 5ba0c7c into main Nov 10, 2025
10 checks passed
@zhaoqi5 zhaoqi5 deleted the users/zhaoqi5/tests-memcmp-expansion branch November 10, 2025 01:59
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 10, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: 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: 92279 tests, 72 workers --
Testing:  0.. 10
FAIL: Clang :: Driver/cuda-arch-translation.cu (12209 of 92279)
******************** TEST 'Clang :: Driver/cuda-arch-translation.cu' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -### --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 --cuda-path=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu 2>&1  | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck -check-prefixes=CUDA,SM20 /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang '-###' --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 --cuda-path=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck -check-prefixes=CUDA,SM20 /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# .---command stderr------------
# | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu:66:15: error: CUDA-SAME: is not on the same line as the previous match
# | // CUDA-SAME: -m64
# |               ^
# | <stdin>:7:11: note: 'next' match was here
# |  "ptxas" "-m64" "-O0" "--gpu-name" "sm_20" "--output-file" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-5ad368.o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s"
# |           ^
# | <stdin>:6:2892: note: previous match ended here
# |  "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-22" "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-unknown-linux-gnu" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cuda-arch-translation.cu" "-mrelocation-model" "static" "-mframe-pointer=all" "-fno-rounding-math" "-no-integrated-as" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-mllvm" "-enable-memcpyopt-without-libcalls" "-fno-threadsafe-statics" "-mlink-builtin-bitcode" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc" "-target-sdk-version=8.0" "-target-cpu" "sm_20" "-target-feature" "+ptx42" "-debugger-tuning=gdb" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-resource-dir" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "--offload-new-driver" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-cuid=d0aeec4d771f85fc" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s" "-x" "cuda" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu"
# |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: clang version 22.0.0git 
# |          2: Target: x86_64-unknown-linux-gnu 
# |          3: Thread model: posix 
# |          4: InstalledDir: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin 
# |          5: Build config: +assertions, +asan 
# |          6:  "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-22" "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-unknown-linux-gnu" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cuda-arch-translation.cu" "-mrelocation-model" "static" "-mframe-pointer=all" "-fno-rounding-math" "-no-integrated-as" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-mllvm" "-enable-memcpyopt-without-libcalls" "-fno-threadsafe-statics" "-mlink-builtin-bitcode" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc" "-target-sdk-version=8.0" "-target-cpu" "sm_20" "-target-feature" "+ptx42" "-debugger-tuning=gdb" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-resource-dir" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "--offload-new-driver" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-cuid=d0aeec4d771f85fc" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s" "-x" "cuda" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu" 
# |          7:  "ptxas" "-m64" "-O0" "--gpu-name" "sm_20" "--output-file" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-5ad368.o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s" 
# | same:66               !~~~                                                                                                                                                                        error: match on wrong line
# |          8:  "fatbinary" "--cuda" "-64" "--create" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-9f252f.fatbin" "--image3=kind=elf,sm=20,file=/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-5ad368.o" 
# |          9:  "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-target-sdk-version=8.0" "-aux-triple" "nvptx64-nvidia-cuda" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cuda-arch-translation.cu" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-resource-dir" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/include" "-fdeprecated-macro" "-ferror-limit" "19" "--offload-new-driver" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-fcuda-include-gpubinary" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-9f252f.fatbin" "-cuid=d0aeec4d771f85fc" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "cuda-arch-translation.o" "-x" "cuda" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu" 
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: 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: 92279 tests, 72 workers --
Testing:  0.. 10
FAIL: Clang :: Driver/cuda-arch-translation.cu (12209 of 92279)
******************** TEST 'Clang :: Driver/cuda-arch-translation.cu' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -### --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 --cuda-path=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu 2>&1  | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck -check-prefixes=CUDA,SM20 /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang '-###' --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 --cuda-path=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck -check-prefixes=CUDA,SM20 /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# .---command stderr------------
# | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu:66:15: error: CUDA-SAME: is not on the same line as the previous match
# | // CUDA-SAME: -m64
# |               ^
# | <stdin>:7:11: note: 'next' match was here
# |  "ptxas" "-m64" "-O0" "--gpu-name" "sm_20" "--output-file" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-5ad368.o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s"
# |           ^
# | <stdin>:6:2892: note: previous match ended here
# |  "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-22" "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-unknown-linux-gnu" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cuda-arch-translation.cu" "-mrelocation-model" "static" "-mframe-pointer=all" "-fno-rounding-math" "-no-integrated-as" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-mllvm" "-enable-memcpyopt-without-libcalls" "-fno-threadsafe-statics" "-mlink-builtin-bitcode" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc" "-target-sdk-version=8.0" "-target-cpu" "sm_20" "-target-feature" "+ptx42" "-debugger-tuning=gdb" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-resource-dir" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "--offload-new-driver" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-cuid=d0aeec4d771f85fc" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s" "-x" "cuda" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu"
# |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: clang version 22.0.0git 
# |          2: Target: x86_64-unknown-linux-gnu 
# |          3: Thread model: posix 
# |          4: InstalledDir: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin 
# |          5: Build config: +assertions, +asan 
# |          6:  "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-22" "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-unknown-linux-gnu" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cuda-arch-translation.cu" "-mrelocation-model" "static" "-mframe-pointer=all" "-fno-rounding-math" "-no-integrated-as" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-mllvm" "-enable-memcpyopt-without-libcalls" "-fno-threadsafe-statics" "-mlink-builtin-bitcode" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc" "-target-sdk-version=8.0" "-target-cpu" "sm_20" "-target-feature" "+ptx42" "-debugger-tuning=gdb" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-resource-dir" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "--offload-new-driver" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-cuid=d0aeec4d771f85fc" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s" "-x" "cuda" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu" 
# |          7:  "ptxas" "-m64" "-O0" "--gpu-name" "sm_20" "--output-file" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-5ad368.o" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-d71aee.s" 
# | same:66               !~~~                                                                                                                                                                        error: match on wrong line
# |          8:  "fatbinary" "--cuda" "-64" "--create" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-9f252f.fatbin" "--image3=kind=elf,sm=20,file=/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-sm_20-5ad368.o" 
# |          9:  "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-target-sdk-version=8.0" "-aux-triple" "nvptx64-nvidia-cuda" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cuda-arch-translation.cu" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/test/Driver" "-resource-dir" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include/c++/14/backward" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc-cross/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/Inputs/CUDA_80/usr/local/cuda/include" "-fdeprecated-macro" "-ferror-limit" "19" "--offload-new-driver" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-fcuda-include-gpubinary" "/tmp/lit-tmp-ptxaskxn/cuda-arch-translation-9f252f.fatbin" "-cuid=d0aeec4d771f85fc" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "cuda-arch-translation.o" "-x" "cuda" "/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Driver/cuda-arch-translation.cu" 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 10, 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 12 "build-stage2-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 12 (build-stage2-unified-tree) failure: build (failure) (timed out)
...
1060.268 [129/12/6636] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Tooling/RecursiveASTVisitorTests/CallbacksCallExpr.cpp.o
1075.520 [129/11/6637] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/AMDGPUMCTargetDesc.cpp.o
1075.524 [129/10/6638] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Tooling/RecursiveASTVisitorTests/CallbacksBinaryOperator.cpp.o
1086.406 [129/9/6639] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/ASTMatchers/ASTMatchersNodeTest.cpp.o
1089.506 [129/8/6640] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstructionSelector.cpp.o
1093.900 [129/7/6641] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetMachine.cpp.o
1154.705 [129/6/6642] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/ASTMatchers/ASTMatchersNarrowingTest.cpp.o
1257.035 [129/5/6643] Building CXX object lib/Target/AMDGPU/AsmParser/CMakeFiles/LLVMAMDGPUAsmParser.dir/AMDGPUAsmParser.cpp.o
1262.865 [129/4/6644] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/AST/ASTImporterTest.cpp.o
1526.556 [129/3/6645] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/ASTMatchers/ASTMatchersTraversalTest.cpp.o
command timed out: 1200 seconds without output running [b'ninja'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=2727.230415

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.

5 participants