[Bug tree-optimization/127216] [17 Regression] Vector averaging code gen regression after recent change
liuhongt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 5 07:29:00 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127216
Hongtao Liu <liuhongt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |liuhongt at gcc dot gnu.org
--- Comment #1 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
The fallback is for the backends which don't support avg_floor, looks like
riscv backend already have autovec.md:(define_expand "avg<mode>3_floor", maybe
it does not cover the related mode in the regressed testcase?
originally, when fallback is false, the vectorizer will manually do sign extend
, plus and then >> 1, does some riscv backend optimization rely on that to
generate widen mode avg_floor?
More information about the Gcc-bugs
mailing list