[llvm] [SelectionDAG] Fix isKnownNeverNaN OR-logic for FMINNUM/FMAXNUM with SNaN (PR #204736)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 02:31:14 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 175955 tests passed
* 3514 tests skipped
* 4 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/clamp.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=amdgcn -mcpu=tahiti < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX6 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn -mcpu=tahiti
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX6 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll:2230:14: error: GFX6-NEXT: expected string not found in input
# | ; GFX6-NEXT: v_med3_f32 v2, v2, 0, 1.0
# | ^
# | <stdin>:1809:27: note: scanning from here
# | v_mul_f32_e32 v2, 1.0, v2
# | ^
# | <stdin>:1810:2: note: possible intended match here
# | v_max_f32_e32 v2, 0, v2
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll:4690:14: error: GFX6-NEXT: expected string not found in input
# | ; GFX6-NEXT: v_med3_f32 v0, v0, 0, 1.0
# | ^
# | <stdin>:3832:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:3833:2: note: possible intended match here
# | v_max_f32_e32 v0, 0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll:4734:14: error: GFX6-NEXT: expected string not found in input
# | ; GFX6-NEXT: v_med3_f32 v0, v0, 0, 1.0
# | ^
# | <stdin>:3874:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:3875:2: note: possible intended match here
# | v_max_f32_e32 v0, 0, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/clamp.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1804: s_waitcnt lgkmcnt(0)
# | 1805: s_mov_b64 s[4:5], s[2:3]
# | 1806: buffer_load_dword v2, v[0:1], s[4:7], 0 addr64
# | 1807: s_mov_b64 s[2:3], s[6:7]
# | 1808: s_waitcnt vmcnt(0)
# | 1809: v_mul_f32_e32 v2, 1.0, v2
# | next:2230'0 X error: no match found
# | 1810: v_max_f32_e32 v2, 0, v2
# | next:2230'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:2230'1 ? possible intended match
# | 1811: v_min_f32_e32 v2, 1.0, v2
# | next:2230'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1812: buffer_store_dword v2, v[0:1], s[0:3], 0 addr64
# | next:2230'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1813: s_endpgm
# | next:2230'0 ~~~~~~~~~~
# | 1814: .Lfunc_end27:
# | next:2230'0 ~~~~~~~~~~~~~~
# | 1815: .size v_clamp_f32_snan_no_dx10clamp, .Lfunc_end27-v_clamp_f32_snan_no_dx10clamp
# | next:2230'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 3827: .p2align 6
# | 3828: .type v_clamp_f32_minimumnum_maximumnum_no_dx10_clamp, at function
# | 3829: v_clamp_f32_minimumnum_maximumnum_no_dx10_clamp: ; @v_clamp_f32_minimumnum_maximumnum_no_dx10_clamp
# | 3830: ; %bb.0:
# | 3831: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 3832: v_mul_f32_e32 v0, 1.0, v0
# | next:4690'0 X error: no match found
# | 3833: v_max_f32_e32 v0, 0, v0
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:4690'1 ? possible intended match
# | 3834: v_min_f32_e32 v0, 1.0, v0
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3835: s_setpc_b64 s[30:31]
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 3836: .Lfunc_end59:
# | next:4690'0 ~~~~~~~~~~~~~~
# | 3837: .size v_clamp_f32_minimumnum_maximumnum_no_dx10_clamp, .Lfunc_end59-v_clamp_f32_minimumnum_maximumnum_no_dx10_clamp
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3838: ; -- End function
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 3869: .p2align 6
# | next:4690'0 ~~~~~~~~~~~~
# | 3870: .type v_clamp_f32_daz_minimumnum_maximumnum_daz_no_dx10clamp, at function
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3871: v_clamp_f32_daz_minimumnum_maximumnum_daz_no_dx10clamp: ; @v_clamp_f32_daz_minimumnum_maximumnum_daz_no_dx10clamp
# | next:4690'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3872: ; %bb.0:
# | 3873: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 3874: v_mul_f32_e32 v0, 1.0, v0
# | next:4734'0 X error: no match found
# | 3875: v_max_f32_e32 v0, 0, v0
# | next:4734'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:4734'1 ? possible intended match
# | 3876: v_min_f32_e32 v0, 1.0, v0
# | next:4734'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3877: s_setpc_b64 s[30:31]
# | next:4734'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 3878: .Lfunc_end60:
# | next:4734'0 ~~~~~~~~~~~~~~
# | 3879: .size v_clamp_f32_daz_minimumnum_maximumnum_daz_no_dx10clamp, .Lfunc_end60-v_clamp_f32_daz_minimumnum_maximumnum_daz_no_dx10clamp
# | next:4734'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3880: ; -- End function
# | next:4734'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/fmed3.bf16.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=amdgcn < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.bf16.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope -check-prefixes=SI,SI-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.bf16.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn
# 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=SI,SI-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.bf16.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.bf16.ll:97:12: error: SI-NEXT: expected string not found in input
# | ; SI-NEXT: v_and_b32_e32 v1, 0xffff0000, v0
# | ^
# | <stdin>:63:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:65:2: note: possible intended match here
# | v_and_b32_e32 v0, 0xffff0000, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.bf16.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 58: .globl v_test_fmed3_r_i_i_v2bf16_minimumnum_maximumnum ; -- Begin function v_test_fmed3_r_i_i_v2bf16_minimumnum_maximumnum
# | 59: .p2align 6
# | 60: .type v_test_fmed3_r_i_i_v2bf16_minimumnum_maximumnum, at function
# | 61: v_test_fmed3_r_i_i_v2bf16_minimumnum_maximumnum: ; @v_test_fmed3_r_i_i_v2bf16_minimumnum_maximumnum
# | 62: ; %bb.0:
# | 63: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:97'0 X error: no match found
# | 64: v_lshlrev_b32_e32 v1, 16, v0
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 65: v_and_b32_e32 v0, 0xffff0000, v0
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:97'1 ? possible intended match
# | 66: v_mul_f32_e32 v1, 1.0, v1
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 67: v_mul_f32_e32 v0, 1.0, v0
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 68: v_max_f32_e32 v1, 2.0, v1
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 69: v_max_f32_e32 v0, 2.0, v0
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 70: v_and_b32_e32 v0, 0xffff0000, v0
# | next:97'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/fmed3.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=amdgcn -global-isel=0 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope -check-prefixes=SI,SI-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn -global-isel=0
# 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=SI,SI-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.ll:8369:12: error: SI-NEXT: expected string not found in input
# | ; SI-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:3798:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:3799:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.ll:8411:17: error: SI-SDAG-NEXT: expected string not found in input
# | ; SI-SDAG-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:3841:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:3843:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/fmed3.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 3793: .p2align 6
# | 3794: .type v_test_fmed3_r_i_i_f32_minimumnum_maximumnum, at function
# | 3795: v_test_fmed3_r_i_i_f32_minimumnum_maximumnum: ; @v_test_fmed3_r_i_i_f32_minimumnum_maximumnum
# | 3796: ; %bb.0:
# | 3797: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 3798: v_mul_f32_e32 v0, 1.0, v0
# | next:8369'0 X error: no match found
# | 3799: v_max_f32_e32 v0, 2.0, v0
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:8369'1 ? possible intended match
# | 3800: v_min_f32_e32 v0, 4.0, v0
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3801: s_setpc_b64 s[30:31]
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 3802: .Lfunc_end51:
# | next:8369'0 ~~~~~~~~~~~~~~
# | 3803: .size v_test_fmed3_r_i_i_f32_minimumnum_maximumnum, .Lfunc_end51-v_test_fmed3_r_i_i_f32_minimumnum_maximumnum
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3804: ; -- End function
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 3836: .type v_test_fmed3_r_i_i_v2f32_minimumnum_maximumnum, at function
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3837: v_test_fmed3_r_i_i_v2f32_minimumnum_maximumnum: ; @v_test_fmed3_r_i_i_v2f32_minimumnum_maximumnum
# | next:8369'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3838: ; %bb.0:
# | 3839: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 3840: v_mul_f32_e32 v1, 1.0, v1
# | 3841: v_mul_f32_e32 v0, 1.0, v0
# | next:8411'0 X error: no match found
# | 3842: v_max_f32_e32 v1, 2.0, v1
# | next:8411'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3843: v_max_f32_e32 v0, 2.0, v0
# | next:8411'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:8411'1 ? possible intended match
# | 3844: v_min_f32_e32 v0, 4.0, v0
# | next:8411'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3845: v_min_f32_e32 v1, 4.0, v1
# | next:8411'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3846: s_setpc_b64 s[30:31]
# | next:8411'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 3847: .Lfunc_end52:
# | next:8411'0 ~~~~~~~~~~~~~~
# | 3848: .size v_test_fmed3_r_i_i_v2f32_minimumnum_maximumnum, .Lfunc_end52-v_test_fmed3_r_i_i_v2f32_minimumnum_maximumnum
# | next:8411'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/known-never-snan.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=amdgcn-amd-amdhsa -mcpu=fiji < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope -check-prefix=GCN /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji
# 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-prefix=GCN /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:119:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:228:26: note: scanning from here
# | v_min_f32_e32 v0, v0, v1
# | ^
# | <stdin>:229:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:135:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:261:26: note: scanning from here
# | v_min_f32_e32 v0, v0, v1
# | ^
# | <stdin>:262:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:151:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:294:26: note: scanning from here
# | v_min_f32_e32 v0, v0, v1
# | ^
# | <stdin>:295:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:167:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:327:26: note: scanning from here
# | v_min_f32_e32 v0, v0, v1
# | ^
# | <stdin>:328:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:198:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:390:27: note: scanning from here
# | v_add_f32_e32 v1, 1.0, v1
# | ^
# | <stdin>:392:2: note: possible intended match here
# | v_min_f32_e32 v0, 4.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:214:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_mul_f32_e32 v1, 1.0, v1
# | ^
# | <stdin>:421:22: note: scanning from here
# | v_rcp_f32_e32 v0, v0
# | ^
# | <stdin>:423:2: note: possible intended match here
# | v_min_f32_e32 v0, 4.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:252:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:488:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:489:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:270:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:522:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:523:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:504:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:1043:33: note: scanning from here
# | v_mul_legacy_f32_e32 v0, v0, v1
# | ^
# | <stdin>:1044:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:531:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:1105:27: note: scanning from here
# | v_mul_f32_e32 v0, 1.0, v0
# | ^
# | <stdin>:1106:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll:624:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_med3_f32 v0, v0, 2.0, 4.0
# | ^
# | <stdin>:1317:24: note: scanning from here
# | v_fract_f32_e32 v0, v0
# | ^
# | <stdin>:1318:2: note: possible intended match here
# | v_max_f32_e32 v0, 2.0, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/known-never-snan.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 223: v_test_known_not_minnum_maybe_nan_src0_input_fmed3_r_i_i_f32: ; @v_test_known_not_minnum_maybe_nan_src0_input_fmed3_r_i_i_f32
# | 224: ; %bb.0:
# | 225: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 226: v_add_f32_e32 v1, 1.0, v1
# | 227: v_mul_f32_e32 v0, 1.0, v0
# | 228: v_min_f32_e32 v0, v0, v1
# | next:119'0 X error: no match found
# | 229: v_max_f32_e32 v0, 2.0, v0
# | next:119'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:119'1 ? possible intended match
# | 230: v_min_f32_e32 v0, 4.0, v0
# | next:119'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 231: s_setpc_b64 s[30:31]
# | next:119'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 232: .Lfunc_end7:
# | next:119'0 ~~~~~~~~~~~~~
# | 233: .size v_test_known_not_minnum_maybe_nan_src0_input_fmed3_r_i_i_f32, .Lfunc_end7-v_test_known_not_minnum_maybe_nan_src0_input_fmed3_r_i_i_f32
# | next:119'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 234: ; -- End function
# | next:119'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 256: v_test_known_not_minnum_maybe_nan_src1_input_fmed3_r_i_i_f32: ; @v_test_known_not_minnum_maybe_nan_src1_input_fmed3_r_i_i_f32
# | next:119'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 257: ; %bb.0:
# | 258: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 259: v_add_f32_e32 v0, 1.0, v0
# | 260: v_mul_f32_e32 v1, 1.0, v1
# | 261: v_min_f32_e32 v0, v0, v1
# | next:135'0 X error: no match found
# | 262: v_max_f32_e32 v0, 2.0, v0
# | next:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:135'1 ? possible intended match
# | 263: v_min_f32_e32 v0, 4.0, v0
# | next:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 264: s_setpc_b64 s[30:31]
# | next:135'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 265: .Lfunc_end8:
# | next:135'0 ~~~~~~~~~~~~~
# | 266: .size v_test_known_not_minnum_maybe_nan_src1_input_fmed3_r_i_i_f32, .Lfunc_end8-v_test_known_not_minnum_maybe_nan_src1_input_fmed3_r_i_i_f32
# | next:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 267: ; -- End function
# | next:135'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 289: v_minnum_possible_nan_lhs_input_fmed3_r_i_i_f32: ; @v_minnum_possible_nan_lhs_input_fmed3_r_i_i_f32
# | next:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 290: ; %bb.0:
# | 291: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 292: v_add_f32_e32 v1, 1.0, v1
# | 293: v_mul_f32_e32 v0, 1.0, v0
# | 294: v_min_f32_e32 v0, v0, v1
# | next:151'0 X error: no match found
# | 295: v_max_f32_e32 v0, 2.0, v0
# | next:151'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:151'1 ? possible intended match
# | 296: v_min_f32_e32 v0, 4.0, v0
# | next:151'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 297: s_setpc_b64 s[30:31]
# | next:151'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 298: .Lfunc_end9:
# | next:151'0 ~~~~~~~~~~~~~
# | 299: .size v_minnum_possible_nan_lhs_input_fmed3_r_i_i_f32, .Lfunc_end9-v_minnum_possible_nan_lhs_input_fmed3_r_i_i_f32
# | next:151'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 300: ; -- End function
# | next:151'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 322: v_minnum_possible_nan_rhs_input_fmed3_r_i_i_f32: ; @v_minnum_possible_nan_rhs_input_fmed3_r_i_i_f32
# | next:151'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 323: ; %bb.0:
# | 324: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 325: v_rcp_f32_e32 v0, v0
# | 326: v_mul_f32_e32 v1, 1.0, v1
# | 327: v_min_f32_e32 v0, v0, v1
# | next:167'0 X error: no match found
# | 328: v_max_f32_e32 v0, 2.0, v0
# | next:167'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:167'1 ? possible intended match
# | 329: v_min_f32_e32 v0, 4.0, v0
# | next:167'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 330: s_setpc_b64 s[30:31]
# | next:167'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 331: .Lfunc_end10:
# | next:167'0 ~~~~~~~~~~~~~~
# | 332: .size v_minnum_possible_nan_rhs_input_fmed3_r_i_i_f32, .Lfunc_end10-v_minnum_possible_nan_rhs_input_fmed3_r_i_i_f32
# | next:167'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 333: ; -- End function
# | next:167'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 385: .p2align 6
# | 386: .type v_maxnum_possible_nan_lhs_input_fmed3_r_i_i_f32, at function
# | 387: v_maxnum_possible_nan_lhs_input_fmed3_r_i_i_f32: ; @v_maxnum_possible_nan_lhs_input_fmed3_r_i_i_f32
# | 388: ; %bb.0:
# | 389: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 390: v_add_f32_e32 v1, 1.0, v1
# | next:198'0 X error: no match found
# | 391: v_max3_f32 v0, v0, v1, 2.0
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 392: v_min_f32_e32 v0, 4.0, v0
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:198'1 ? possible intended match
# | 393: s_setpc_b64 s[30:31]
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 394: .Lfunc_end12:
# | next:198'0 ~~~~~~~~~~~~~~
# | 395: .size v_maxnum_possible_nan_lhs_input_fmed3_r_i_i_f32, .Lfunc_end12-v_maxnum_possible_nan_lhs_input_fmed3_r_i_i_f32
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 396: ; -- End function
# | next:198'0 ~~~~~~~~~~~~~~~~~~~
# | 397: .set .Lv_maxnum_possible_nan_lhs_input_fmed3_r_i_i_f32.num_vgpr, 2
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 416: .p2align 6
# | next:198'0 ~~~~~~~~~~~~
# | 417: .type v_maxnum_possible_nan_rhs_input_fmed3_r_i_i_f32, at function
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 418: v_maxnum_possible_nan_rhs_input_fmed3_r_i_i_f32: ; @v_maxnum_possible_nan_rhs_input_fmed3_r_i_i_f32
# | next:198'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 419: ; %bb.0:
# | 420: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 421: v_rcp_f32_e32 v0, v0
# | next:214'0 X error: no match found
# | 422: v_max3_f32 v0, v0, v1, 2.0
# | next:214'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 423: v_min_f32_e32 v0, 4.0, v0
# | next:214'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:214'1 ? possible intended match
# | 424: s_setpc_b64 s[30:31]
# | next:214'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 425: .Lfunc_end13:
# | next:214'0 ~~~~~~~~~~~~~~
# | 426: .size v_maxnum_possible_nan_rhs_input_fmed3_r_i_i_f32, .Lfunc_end13-v_maxnum_possible_nan_rhs_input_fmed3_r_i_i_f32
# | next:214'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 427: ; -- End function
# | next:214'0 ~~~~~~~~~~~~~~~~~~~
# | 428: .set .Lv_maxnum_possible_nan_rhs_input_fmed3_r_i_i_f32.num_vgpr, 2
# | next:214'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 483: ; %bb.0:
# | 484: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 485: v_add_f32_e32 v1, 1.0, v1
# | 486: v_cmp_eq_u32_e32 vcc, 0, v2
# | 487: v_cndmask_b32_e32 v0, v1, v0, vcc
# | 488: v_mul_f32_e32 v0, 1.0, v0
# | next:252'0 X error: no match found
# | 489: v_max_f32_e32 v0, 2.0, v0
# | next:252'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:252'1 ? possible intended match
# | 490: v_min_f32_e32 v0, 4.0, v0
# | next:252'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 491: s_setpc_b64 s[30:31]
# | next:252'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 492: .Lfunc_end15:
# | next:252'0 ~~~~~~~~~~~~~~
# | 493: .size v_select_possible_nan_lhs_input_fmed3_r_i_i_f32, .Lfunc_end15-v_select_possible_nan_lhs_input_fmed3_r_i_i_f32
# | next:252'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 494: ; -- End function
# | next:252'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 517: ; %bb.0:
# | 518: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 519: v_rcp_f32_e32 v0, v0
# | 520: v_cmp_eq_u32_e32 vcc, 0, v2
# | 521: v_cndmask_b32_e32 v0, v1, v0, vcc
# | 522: v_mul_f32_e32 v0, 1.0, v0
# | next:270'0 X error: no match found
# | 523: v_max_f32_e32 v0, 2.0, v0
# | next:270'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:270'1 ? possible intended match
# | 524: v_min_f32_e32 v0, 4.0, v0
# | next:270'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 525: s_setpc_b64 s[30:31]
# | next:270'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 526: .Lfunc_end16:
# | next:270'0 ~~~~~~~~~~~~~~
# | 527: .size v_select_possible_nan_rhs_input_fmed3_r_i_i_f32, .Lfunc_end16-v_select_possible_nan_rhs_input_fmed3_r_i_i_f32
# | next:270'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 528: ; -- End function
# | next:270'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 1038: .p2align 6
# | 1039: .type v_test_known_not_snan_fmul_legacy_input_fmed3_r_i_i_f32, at function
# | 1040: v_test_known_not_snan_fmul_legacy_input_fmed3_r_i_i_f32: ; @v_test_known_not_snan_fmul_legacy_input_fmed3_r_i_i_f32
# | 1041: ; %bb.0:
# | 1042: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 1043: v_mul_legacy_f32_e32 v0, v0, v1
# | next:504'0 X error: no match found
# | 1044: v_max_f32_e32 v0, 2.0, v0
# | next:504'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:504'1 ? possible intended match
# | 1045: v_min_f32_e32 v0, 4.0, v0
# | next:504'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1046: s_setpc_b64 s[30:31]
# | next:504'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 1047: .Lfunc_end33:
# | next:504'0 ~~~~~~~~~~~~~~
# | 1048: .size v_test_known_not_snan_fmul_legacy_input_fmed3_r_i_i_f32, .Lfunc_end33-v_test_known_not_snan_fmul_legacy_input_fmed3_r_i_i_f32
# | next:504'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1049: ; -- End function
# | next:504'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 1100: .type v_test_known_not_snan_fmed3_input_fmed3_r_i_i_f32, at function
# | 1101: v_test_known_not_snan_fmed3_input_fmed3_r_i_i_f32: ; @v_test_known_not_snan_fmed3_input_fmed3_r_i_i_f32
# | 1102: ; %bb.0:
# | 1103: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 1104: v_med3_f32 v0, v0, v1, v2
# | 1105: v_mul_f32_e32 v0, 1.0, v0
# | next:531'0 X error: no match found
# | 1106: v_max_f32_e32 v0, 2.0, v0
# | next:531'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:531'1 ? possible intended match
# | 1107: v_min_f32_e32 v0, 4.0, v0
# | next:531'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1108: s_setpc_b64 s[30:31]
# | next:531'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 1109: .Lfunc_end35:
# | next:531'0 ~~~~~~~~~~~~~~
# | 1110: .size v_test_known_not_snan_fmed3_input_fmed3_r_i_i_f32, .Lfunc_end35-v_test_known_not_snan_fmed3_input_fmed3_r_i_i_f32
# | next:531'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1111: ; -- End function
# | next:531'0 ~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 1312: .p2align 6
# | 1313: .type v_test_known_not_snan_fract_input_fmed3_r_i_i_f32, at function
# | 1314: v_test_known_not_snan_fract_input_fmed3_r_i_i_f32: ; @v_test_known_not_snan_fract_input_fmed3_r_i_i_f32
# | 1315: ; %bb.0:
# | 1316: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 1317: v_fract_f32_e32 v0, v0
# | next:624'0 X error: no match found
# | 1318: v_max_f32_e32 v0, 2.0, v0
# | next:624'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:624'1 ? possible intended match
# | 1319: v_min_f32_e32 v0, 4.0, v0
# | next:624'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1320: s_setpc_b64 s[30:31]
# | next:624'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 1321: .Lfunc_end42:
# | next:624'0 ~~~~~~~~~~~~~~
# | 1322: .size v_test_known_not_snan_fract_input_fmed3_r_i_i_f32, .Lfunc_end42-v_test_known_not_snan_fract_input_fmed3_r_i_i_f32
# | next:624'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1323: ; -- End function
# | next:624'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/204736
More information about the llvm-commits
mailing list