[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:45:57 PST 2025


llvm-ci wrote:

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/16161

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

```
Step 7 (test-build-unified-tree-check-llvm) 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/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32
+ sed s/iXLen/i32/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -O2
RUN: at line 4: sed 's/iXLen/i64/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -O2
+ sed s/iXLen/i64/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
RUN: at line 6: sed 's/iXLen/i32/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+zbb -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBB
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+zbb -O2
+ sed s/iXLen/i32/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBB
RUN: at line 8: sed 's/iXLen/i64/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+zbb -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBB
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBB
+ sed s/iXLen/i64/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+zbb -O2
RUN: at line 10: sed 's/iXLen/i32/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+zbkb -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBKB
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+zbkb -O2
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-ZBKB
+ sed s/iXLen/i32/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
RUN: at line 12: sed 's/iXLen/i64/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+zbkb -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBKB
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+zbkb -O2
+ sed s/iXLen/i64/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-ZBKB
RUN: at line 14: sed 's/iXLen/i32/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+v -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-ALIGNED,CHECK-ALIGNED-RV32-V
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+v -O2
+ sed s/iXLen/i32/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/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/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+v -O2     | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-V
+ sed s/iXLen/i64/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-ALIGNED,CHECK-ALIGNED-RV64-V
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+v -O2
RUN: at line 18: sed 's/iXLen/i32/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+unaligned-scalar-mem -O2    | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+unaligned-scalar-mem -O2
+ sed s/iXLen/i32/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
RUN: at line 20: sed 's/iXLen/i64/g' /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem -O2    | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV64,CHECK-UNALIGNED,CHECK-UNALIGNED-RV64
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem -O2
+ sed s/iXLen/i64/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/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/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+zbb,+unaligned-scalar-mem -O2    | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32-ZBB
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll --check-prefixes=CHECK,CHECK-RV32,CHECK-UNALIGNED,CHECK-UNALIGNED-RV32-ZBB
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=riscv32 -mattr=+zbb,+unaligned-scalar-mem -O2
+ sed s/iXLen/i32/g /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/RISCV/memcmp.ll
/b/1/llvm-x86_64-debian-dylib/llvm-project/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