]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix incorrect op of vwaddu/vwsubu wx combine
authorPan Li <pan2.li@intel.com>
Tue, 14 Oct 2025 02:33:08 +0000 (10:33 +0800)
committerPan Li <pan2.li@intel.com>
Wed, 15 Oct 2025 01:28:19 +0000 (09:28 +0800)
commitd58a8e37f04e727857391ff22f3924cb97f4d168
tree8844b5dd8ab188b136dd714a73ba28c4a0c1e6a9
parent7092efd3d6b17ebf9e93bb9c78780cef9a2151ba
RISC-V: Fix incorrect op of vwaddu/vwsubu wx combine

The vwaddu and vwsubu combine pattern should take plus/minus
instead of any_widen_binop.  This PATCH would like to fix it.

The below test suites are passed for this patch series.
* The rv64gcv fully regression test.

gcc/ChangeLog:

* config/riscv/autovec-opt.md: Take concrete op instead
of any_widen_binop for vwaddu/vwsubu wx combine.

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