https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103581
--- Comment #5 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:0dc77a0c4942d3b264f8f8cfc2c509ecc02c3634 commit r12-5805-g0dc77a0c4942d3b264f8f8cfc2c509ecc02c3634 Author: Richard Biener <rguent...@suse.de> Date: Mon Dec 6 15:13:49 2021 +0100 tree-optimization/103581 - fix masked gather on x86 The recent fix to PR103527 exposed an issue with how the various special casing for AVX512 masks in vect_build_gather_load_calls are handled. The following makes that more obvious, fixing the miscompile of 403.gcc. 2021-12-06 Richard Biener <rguent...@suse.de> PR tree-optimization/103581 * tree-vect-stmts.c (vect_build_gather_load_calls): Properly guard all the AVX512 mask cases. * gcc.dg/vect/pr103581.c: New testcase.