[llvm] [RISCV][ISelLowering] Use Zicond for FP selects on Zfinx/Zdinx (PR #169299)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 23:37:48 PST 2025


github-actions[bot] wrote:

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

* 166371 tests passed
* 2869 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/zicond-fp-select-zfinx.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+zdinx,+zicond -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV64ZDINX_ZICOND
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+zdinx,+zicond -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV64ZDINX_ZICOND
# 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=+zdinx         -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV64ZDINX_NOZICOND
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+zdinx -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV64ZDINX_NOZICOND
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+zhinx,+zicond -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV64ZHINX_ZICOND
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+zhinx,+zicond -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV64ZHINX_ZICOND
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+f,+d          -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV64FD
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+f,+d -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV64FD
# note: command had no output on stdout or stderr
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zfinx,+zicond -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV32ZFINX_ZICOND
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zfinx,+zicond -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV32ZFINX_ZICOND
# note: command had no output on stdout or stderr
# RUN: at line 14
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zfinx         -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV32ZFINX_NOZICOND
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zfinx -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV32ZFINX_NOZICOND
# note: command had no output on stdout or stderr
# RUN: at line 15
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zdinx,+zicond -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.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/zicond-fp-select-zfinx.ll --check-prefix=RV32ZDINX_ZICOND
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zdinx,+zicond -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/RISCV/zicond-fp-select-zfinx.ll --check-prefix=RV32ZDINX_ZICOND
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.ll:185:26: error: RV32ZDINX_ZICOND-NEXT: expected string not found in input
# | ; RV32ZDINX_ZICOND-NEXT: mv a4, a6
# |                          ^
# | <stdin>:30:11: note: scanning from here
# |  mv a6, a3
# |           ^
# | <stdin>:35:2: note: possible intended match here
# |  mv a4, a1
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.ll:331:26: error: RV32ZDINX_ZICOND-NEXT: expected string not found in input
# | ; RV32ZDINX_ZICOND-NEXT: mv a4, a6
# |                          ^
# | <stdin>:50:18: note: scanning from here
# | # %bb.1: # %entry
# |                  ^
# | <stdin>:51:5: note: possible intended match here
# |  fmv.d a4, a6
# |     ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/zicond-fp-select-zfinx.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            25: # %bb.0: # %entry 
# |            26:  andi a0, a0, 1 
# |            27:  bnez a0, .LBB1_2 
# |            28: # %bb.1: # %entry 
# |            29:  mv a7, a4 
# |            30:  mv a6, a3 
# | next:185'0               X error: no match found
# |            31:  fmv.d a4, a6 
# | next:185'0     ~~~~~~~~~~~~~~
# |            32:  j .LBB1_3 
# | next:185'0     ~~~~~~~~~~~
# |            33: .LBB1_2: 
# | next:185'0     ~~~~~~~~~
# |            34:  mv a5, a2 
# | next:185'0     ~~~~~~~~~~~
# |            35:  mv a4, a1 
# | next:185'0     ~~~~~~~~~~~
# | next:185'1      ?          possible intended match
# |            36: .LBB1_3: # %entry 
# | next:185'0     ~~~~~~~~~~~~~~~~~~
# |            37:  mv a0, a4 
# | next:185'0     ~~~~~~~~~~~
# |            38:  mv a1, a5 
# | next:185'0     ~~~~~~~~~~~
# |            39:  ret 
# | next:185'0     ~~~~~
# |            40: .Lfunc_end1: 
# | next:185'0     ~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |            45:  .type select_f64_fcmp, at function 
# | next:185'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            46: select_f64_fcmp: # @select_f64_fcmp 
# | next:185'0     ~~~~~~~~~~~~~~~~
# |            47: # %bb.0: # %entry 
# |            48:  flt.d a0, a2, a0 
# |            49:  bnez a0, .LBB2_2 
# |            50: # %bb.1: # %entry 
# | next:331'0                      X error: no match found
# |            51:  fmv.d a4, a6 
# | next:331'0     ~~~~~~~~~~~~~~
# | next:331'1         ?          possible intended match
# |            52: .LBB2_2: # %entry 
# | next:331'0     ~~~~~~~~~~~~~~~~~~
# |            53:  mv a0, a4 
# | next:331'0     ~~~~~~~~~~~
# |            54:  mv a1, a5 
# | next:331'0     ~~~~~~~~~~~
# |            55:  ret 
# | next:331'0     ~~~~~
# |            56: .Lfunc_end2: 
# | next:331'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/169299


More information about the llvm-commits mailing list