On Sat, Nov 5, 2022 at 12:25 PM Richard Biener wrote: > > On Wed, Nov 2, 2022 at 1:46 PM Uros Bizjak wrote: > > > > On Wed, Nov 2, 2022 at 1:45 PM Robin Dapp wrote: > > > > > > > IIRC, I was trying to "fix" modeless operand by giving it a mode, but > > > > since it made no difference for x86, I later dropped the patch. > > > > However, operand with a known mode is preferred, so if it works for > > > > you, just include my patch in your submission. My patch is somehow > > > > trivial if we want operand to have known mode. > > > > > > I'd prefer to push it separately as my patch changes several things in > > > the s390 backend that are kind of unrelated. Is it OK to do an x86 > > > bootstrap and regtest and push it if everything looks good? You can of > > > course also do it yourself :) > > > > It is a middle-end patch, someone will have to approve it. > > The patch is OK Thanks, pushed with the following ChangeLog: optabs: Use operand[2] mode in can_vec_set_var_idx_p Use operand[2] mode in can_vec_set_var_idx_p when checking vec_set_optab. This change allows non-VOID index operand in vec_set_optab. 2022-11-06 Uroš Bizjak gcc/ChangeLog: * optabs.cc (can_vec_set_var_idx_p): Use operand[2] mode when checking vec_set_optab. Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. Uros.