https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722
--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Vineet Gupta <[email protected]>: https://gcc.gnu.org/g:b755c151fde4ad736405bb2e13a7de0420161179 commit r15-6673-gb755c151fde4ad736405bb2e13a7de0420161179 Author: Vineet Gupta <[email protected]> Date: Tue Jan 7 14:28:25 2025 -0800 RISC-V: vector absolute difference expander [PR117722] This improves codegen for x264 sum of absolute difference routines. The insn count is same, but we avoid double widening ops and ensuing whole register moves. Also for more general applicability, we chose to implement abs diff vs. the sum of abs diff variant. Suggested-by: Robin Dapp <[email protected]> Co-authored-by: Pan Li <[email protected]> Signed-off-by: Vineet Gupta <[email protected]> PR target/117722 gcc/ChangeLog: * config/riscv/autovec.md: Add uabd expander. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr117722.c: New test.
