[llvm] SelectionDAG: Fold saturations into min/max (PR #201899)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 07:06:44 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 175185 tests passed
* 3439 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/sminmax.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn -mcpu=verde < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/sminmax.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope -check-prefixes=GCN,SIVI,FUNC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/sminmax.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn -mcpu=verde
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope -check-prefixes=GCN,SIVI,FUNC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/sminmax.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/sminmax.ll:254:12: error: GCN-DAG: expected string not found in input
# | ; GCN-DAG: v_cndmask_b32_e32
# | ^
# | <stdin>:775:18: note: scanning from here
# | v_cmp_gt_i32_e32 vcc, v0, v1
# | ^
# | <stdin>:777:2: note: possible intended match here
# | v_cndmask_b32_e64 v0, 0, 1, vcc
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/sminmax.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 770: s_mov_b32 s8, s0
# | 771: s_mov_b32 s9, s1
# | 772: s_mov_b32 s4, s2
# | 773: s_mov_b32 s5, s3
# | 774: v_max_i32_e32 v2, v0, v1
# | 775: v_cmp_gt_i32_e32 vcc, v0, v1
# | dag:254'0 X~~~~~~~~~~~~ error: no match found
# | 776: v_min_i32_e32 v3, v1, v0
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 777: v_cndmask_b32_e64 v0, 0, 1, vcc
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | dag:254'1 ? possible intended match
# | 778: buffer_store_dword v2, off, s[8:11], 0
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 779: s_waitcnt vmcnt(0)
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~
# | 780: buffer_store_dword v3, off, s[4:7], 0
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 781: s_waitcnt vmcnt(0)
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~
# | 782: buffer_store_byte v0, off, s[8:11], 0
# | dag:254'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/SPARC/atomics.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPARC/atomics.ll -mtriple=sparc -mcpu=v9 -verify-machineinstrs | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPARC/atomics.ll --check-prefixes=SPARC
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=sparc -mcpu=v9 -verify-machineinstrs
# 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/SPARC/atomics.ll --check-prefixes=SPARC
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPARC/atomics.ll:375:10: error: SPARC: expected string not found in input
# | ; SPARC: movleu %icc
# | ^
# | <stdin>:445:5: note: scanning from here
# | cmp %o2, %o1
# | ^
# | <stdin>:447:2: note: possible intended match here
# | movcs %icc, %o3, %o2
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPARC/atomics.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 440: membar #LoadStore | #StoreStore
# | 441: ld [%o0], %o2
# | 442: .LBB15_1: ! %atomicrmw.start
# | 443: ! =>This Inner Loop Header: Depth=1
# | 444: mov %o2, %o3
# | 445: cmp %o2, %o1
# | check:375'0 X~~~~~~~~~ error: no match found
# | 446: mov %o1, %o2
# | check:375'0 ~~~~~~~~~~~~~~
# | 447: movcs %icc, %o3, %o2
# | check:375'0 ~~~~~~~~~~~~~~~~~~~~~~
# | check:375'1 ? possible intended match
# | 448: cas [%o0], %o3, %o2
# | check:375'0 ~~~~~~~~~~~~~~~~~~~~~
# | 449: mov %g0, %o4
# | check:375'0 ~~~~~~~~~~~~~~
# | 450: cmp %o2, %o3
# | check:375'0 ~~~~~~~~~~~~~~
# | 451: move %icc, 1, %o4
# | check:375'0 ~~~~~~~~~~~~~~~~~~~
# | 452: cmp %o4, 1
# | check:375'0 ~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/201899
More information about the llvm-commits
mailing list