https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125474
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Xi Ruoyao <[email protected]>: https://gcc.gnu.org/g:f777e76b57d9ee1bab3866bf157e43b8a0672c2e commit r17-1949-gf777e76b57d9ee1bab3866bf157e43b8a0672c2e Author: Xi Ruoyao <[email protected]> Date: Sun May 24 19:23:22 2026 +0800 LoongArch: add usdot_prod pattern [PR 125474] A hot loop in SPEC 2026 stockfish_r calculates the dot product of a sign-extended vector and a zero-extended vector. Add the corresponding usdot_prod pattern to use the instructions with such a semantic, for example xvmulwev.h.bu.b, to optimize the loop. PR target/125474 gcc/ * config/loongarch/simd.md (usdot_prod<wvec_half><mode>): New define_expand. (usdot_prod<wvec_quarter><mode>): New define_expand. gcc/testsuite/ * gcc.target/loongarch/vector/lasx/dot-prod-mixed-signedness.c: New test.
