https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111970
--- Comment #22 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:c656d268c9dac8b6f710b9bbd399214cb11b3287 commit r14-5635-gc656d268c9dac8b6f710b9bbd399214cb11b3287 Author: Richard Biener <rguent...@suse.de> Date: Mon Nov 20 15:16:44 2023 +0100 tree-optimization/111970 - fix issue with SLP of emulated gather/scatter There's a missed index adjustment for the SLP vector number when computing the index/data vectors for emulated gather/scatter with SLP. The following fixes this. PR tree-optimization/111970 * tree-vect-stmts.cc (vectorizable_load): Fix offset calculation for SLP gather load. (vectorizable_store): Likewise for SLP scatter store.