[llvm] [ExpandMemCmp][AArch64][PowerPC][RISCV][X86] Use llvm.ucmp instead of (sub (zext (icmp ugt)), (zext (icmp ult))). (PR #121530)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 09:44:59 PST 2025


llvm-ci wrote:

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

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/RISCV/memcmp.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: sed 's/iXLen/i32/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32
+ sed s/iXLen/i32/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -O2
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32
RUN: at line 4: sed 's/iXLen/i64/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -O2
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64
+ sed s/iXLen/i64/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
RUN: at line 6: sed 's/iXLen/i32/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+zbb -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBB
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBB
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+zbb -O2
+ sed s/iXLen/i32/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
RUN: at line 8: sed 's/iXLen/i64/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+zbb -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBB
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+zbb -O2
+ sed s/iXLen/i64/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBB
RUN: at line 10: sed 's/iXLen/i32/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+zbkb -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBKB
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBKB
+ sed s/iXLen/i32/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+zbkb -O2
RUN: at line 12: sed 's/iXLen/i64/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+zbkb -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBKB
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+zbkb -O2
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBKB
+ sed s/iXLen/i64/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
RUN: at line 14: sed 's/iXLen/i32/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+v -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-V
+ sed s/iXLen/i32/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+v -O2
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-V
RUN: at line 16: sed 's/iXLen/i64/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+v -O2     | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-V
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+v -O2
+ sed s/iXLen/i64/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-V
RUN: at line 18: sed 's/iXLen/i32/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+unaligned-scalar-mem -O2    | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+unaligned-scalar-mem -O2
+ sed s/iXLen/i32/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32
RUN: at line 20: sed 's/iXLen/i64/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem -O2    | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-UNALIGNED,CHECK-UNALIGNED-RV64
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem -O2
+ sed s/iXLen/i64/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-UNALIGNED,CHECK-UNALIGNED-RV64
RUN: at line 22: sed 's/iXLen/i32/g' /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+zbb,+unaligned-scalar-mem -O2    | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32-ZBB
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32-ZBB
+ sed s/iXLen/i32/g /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=riscv32 -mattr=+zbb,+unaligned-scalar-mem -O2
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/RISCV/memcmp.ll:3158:34: error: CHECK-UNALIGNED-RV32-ZBB-NEXT: expected string not found in input
...

```

</details>

https://github.com/llvm/llvm-project/pull/121530


More information about the llvm-commits mailing list