https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107271
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>: https://gcc.gnu.org/g:1442e2031e0bc2d0a5bf88ef3c92c5410e044bab commit r13-3368-g1442e2031e0bc2d0a5bf88ef3c92c5410e044bab Author: liuhongt <hongtao....@intel.com> Date: Tue Oct 18 16:58:52 2022 +0800 Canonicalize vec_perm index to make the first index come from the first vector. Fix unexpected non-canon form from gimple vector selector. gcc/ChangeLog: PR target/107271 * config/i386/i386-expand.cc (ix86_vec_perm_index_canon): New. (expand_vec_perm_shufps_shufps): Call ix86_vec_perm_index_canon gcc/testsuite/ChangeLog: * gcc.target/i386/pr107271.c: New test.