[llvm] [RISCV] GISel custom lowering for G_ADD/G_SUB (PR #121587)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 19:46:35 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `llvm` at step 2 "annotate".

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

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

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/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: 88165 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: LLVM :: CodeGen/RISCV/GlobalISel/combine-neg-abs.ll (17906 of 88165)
******************** TEST 'LLVM :: CodeGen/RISCV/GlobalISel/combine-neg-abs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32I
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -mattr=+zbb -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32ZBB
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -mattr=+zbb -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32ZBB
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv64 -global-isel -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV64I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv64 -global-isel -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV64I
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:30:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:10:9: note: scanning from here
# %bb.0:
        ^
<stdin>:11:2: note: possible intended match here
 negw a1, a0
 ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:72:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:28:9: note: scanning from here
# %bb.0:
        ^
<stdin>:29:2: note: possible intended match here
 negw a1, a0
 ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:254:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:80:9: note: scanning from here
# %bb.0:
        ^
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/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: 88165 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: LLVM :: CodeGen/RISCV/GlobalISel/combine-neg-abs.ll (17906 of 88165)
******************** TEST 'LLVM :: CodeGen/RISCV/GlobalISel/combine-neg-abs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32I
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -mattr=+zbb -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32ZBB
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv32 -global-isel -mattr=+zbb -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32ZBB
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv64 -global-isel -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV64I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llc -mtriple=riscv64 -global-isel -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV64I
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:30:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:10:9: note: scanning from here
# %bb.0:
        ^
<stdin>:11:2: note: possible intended match here
 negw a1, a0
 ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:72:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:28:9: note: scanning from here
# %bb.0:
        ^
<stdin>:29:2: note: possible intended match here
 negw a1, a0
 ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:254:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:80:9: note: scanning from here
# %bb.0:
        ^
Step 13 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/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: 88164 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: CodeGen/RISCV/GlobalISel/combine-neg-abs.ll (9196 of 88164)
******************** TEST 'LLVM :: CodeGen/RISCV/GlobalISel/combine-neg-abs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=riscv32 -global-isel -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=riscv32 -global-isel -verify-machineinstrs
RUN: at line 4: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=riscv32 -global-isel -mattr=+zbb -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32ZBB
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=riscv32 -global-isel -mattr=+zbb -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV32ZBB
RUN: at line 6: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=riscv64 -global-isel -verify-machineinstrs < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll    | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV64I
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -mtriple=riscv64 -global-isel -verify-machineinstrs
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll --check-prefixes=RV64I
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:30:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:10:9: note: scanning from here
# %bb.0:
        ^
<stdin>:11:2: note: possible intended match here
 negw a1, a0
 ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:72:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:28:9: note: scanning from here
# %bb.0:
        ^
<stdin>:29:2: note: possible intended match here
 negw a1, a0
 ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/RISCV/GlobalISel/combine-neg-abs.ll:254:15: error: RV64I-NEXT: expected string not found in input
; RV64I-NEXT: neg a1, a0
              ^
<stdin>:80:9: note: scanning from here
# %bb.0:
        ^

```

</details>

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


More information about the llvm-commits mailing list