https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109944
--- Comment #1 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:f504b70eb0fc1339322960041a85606df4547897 commit r14-1137-gf504b70eb0fc1339322960041a85606df4547897 Author: Richard Biener <rguent...@suse.de> Date: Tue May 23 15:12:33 2023 +0200 Account for vector splat GPR->XMM move cost The following also accounts for a GPR->XMM move cost for splat operations and properly guards eliding the cost when moving from memory only for SSE4.1 or HImode or larger operands. This doesn't fix the PR fully yet. PR target/109944 * config/i386/i386.cc (ix86_vector_costs::add_stmt_cost): For vector construction or splats apply GPR->XMM move costing. QImode memory can be handled directly only with SSE4.1 pinsrb.