]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH v1 1/2] RISC-V: Fix incorrect combine pattern for any_extend [PR123317]
authorPan Li <pan2.li@intel.com>
Mon, 5 Jan 2026 16:26:47 +0000 (09:26 -0700)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Mon, 5 Jan 2026 16:26:47 +0000 (09:26 -0700)
commit2dbf9c0feca31597e691e0401f4723380db4612e
tree9913a3eec5348c309a098fc89213c1d4b0139f40
parent340e971f0ed62b8cab19bb2915fb3d8902b721de
[PATCH v1 1/2] RISC-V: Fix incorrect combine pattern for any_extend [PR123317]

From: Pan Li <pan2.li@intel.com>

The vwaddu/vwsubu wx combine patterns take the any_extend by
mistake, it is unsigned so we must leverage zero_extend here.
This PATCH would like to fix this which result in sign_extend
code pattern combine to vwaddu/vwsub.wx.

PR target/123317

gcc/ChangeLog:

* config/riscv/autovec-opt.md: Take zero_extend for
both the vwaddu and vwsubu wx pattern.

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