[llvm-branch-commits] [llvm] [CodeGen] Use swapOperands in TargetInstrInfo::commuteInstructionImpl (PR #238392)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 3 10:50:57 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 159860 tests passed
* 2322 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/rvp-avgsub.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+experimental-p < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll    | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll --check-prefixes=CHECK,RV32
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+experimental-p
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll --check-prefixes=CHECK,RV32
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+experimental-p < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll    | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll --check-prefixes=CHECK,RV64
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+experimental-p
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll --check-prefixes=CHECK,RV64
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll:487:14: error: RV64-NEXT: expected string not found in input
# | ; RV64-NEXT: pzext.h.b a0, a0
# |              ^
# | <stdin>:368:21: note: scanning from here
# |  pasubu.b a0, a0, a1
# |                     ^
# | <stdin>:369:2: note: possible intended match here
# |  psext.h.b a0, a0
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll:509:14: error: RV64-NEXT: expected string not found in input
# | ; RV64-NEXT: pzext.h.b a0, a0
# |              ^
# | <stdin>:381:20: note: scanning from here
# |  pasub.b a0, a0, a1
# |                    ^
# | <stdin>:382:2: note: possible intended match here
# |  psext.h.b a0, a0
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvp-avgsub.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           363:  .p2align 2 
# |           364:  .type narrow_zero_bits_ashr, at function 
# |           365: narrow_zero_bits_ashr: # @narrow_zero_bits_ashr 
# |           366:  .cfi_startproc 
# |           367: # %bb.0: 
# |           368:  pasubu.b a0, a0, a1 
# | next:487'0                        {   search range start (exclusive)
# | next:487'1                            error: no match found in search range
# |           369:  psext.h.b a0, a0 
# | next:487'2      ?                  possible intended match
# |           370:  ret 
# |           371: .Lfunc_end27: 
# |           372:  .size narrow_zero_bits_ashr, .Lfunc_end27-narrow_zero_bits_ashr 
# |           373:  .cfi_endproc 
# |           374:  # -- End function 
# |           375:  .globl narrow_sign_bits_ashr # -- Begin function narrow_sign_bits_ashr 
# |           376:  .p2align 2 
# |           377:  .type narrow_sign_bits_ashr, at function 
# |           378: narrow_sign_bits_ashr: # @narrow_sign_bits_ashr 
# | next:487'3                           }                           search range end (exclusive)
# |           379:  .cfi_startproc 
# |           380: # %bb.0: 
# |           381:  pasub.b a0, a0, a1 
# | next:509'0                       {   search range start (exclusive)
# | next:509'1                           error: no match found in search range
# |           382:  psext.h.b a0, a0 
# | next:509'2      ?                  possible intended match
# |           383:  ret 
# |           384: .Lfunc_end28: 
# |           385:  .size narrow_sign_bits_ashr, .Lfunc_end28-narrow_sign_bits_ashr 
# |           386:  .cfi_endproc 
# |           387:  # -- End function 
# |           388:  .globl narrow_zero_bits_lshr_trunc # -- Begin function narrow_zero_bits_lshr_trunc 
# |           389:  .p2align 2 
# |           390:  .type narrow_zero_bits_lshr_trunc, at function 
# |           391: narrow_zero_bits_lshr_trunc: # @narrow_zero_bits_lshr_trunc 
# | next:509'3                                 }                                 search range end (exclusive)
# |           392:  .cfi_startproc 
# |           393: # %bb.0: 
# |           394:  pasubu.b a0, a0, a1 
# |           395:  pncvt.wb a0, a0 
# |           396:  ret 
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-branch-commits mailing list