https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88464
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45239
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45239&action=edit
gcc9-pr88464-2.patch
Incremental untested patch.
First of all, I've missed an important case for gathers in the testsuite
coverage, float with long index type on -m64, that actually ICEd due to
multiple issues.
The rest of the patch implements masked scatters, though at least for now only
for 512-bit vectors. The problem for 128-bit and 256-bit is that the
vectorizer computes the comparisons in an integral vector rather than bool
vector (i.e. int); perhaps we could just emit an instruction that sets masks
from the MSB bits of such a vector.