]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add another combine pattern for vfmin/max on cost model
authorPan Li <pan2.li@intel.com>
Tue, 17 Feb 2026 11:15:36 +0000 (19:15 +0800)
committerPan Li <pan2.li@intel.com>
Thu, 19 Feb 2026 01:12:24 +0000 (09:12 +0800)
commit63fc48f077cbd03ddc779b079e93c8e5d5ce1098
treeeff0cd7a986864ff110f00092e25c2b46eb806b3
parentff2f6c5153ecc142e1821a26b4a5184b4fe30607
RISC-V: Add another combine pattern for vfmin/max on cost model

The recent change introduce another form of vfmin/max, which is
more "literal" compare the previous one.  The related vx_vf/vf*
test cases also failed due to this change.  Thus, add the pattern
to make the test case happy.

The below test suites are passed for this patch series.
* The rv64gcv fully regression test.
* Fix the vx_vf/vf* testcases.

gcc/ChangeLog:

* config/riscv/autovec-opt.md (*literal_v<ieee_fmaxmin_op>_vf_<mode>):
Add new pattern for vfmax/min combine to fx.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/autovec-opt.md