https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118487

Christoph Müllner <cmuellner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from Christoph Müllner <cmuellner at gcc dot gnu.org> ---
I can reproduce this ICE.

The issue comes from the uninitialized mask (or selector) of the vector shuffle
(or permutation).
Uninitialized means that values might exceed the number of possible elements.

The documentation states, "The elements of mask are considered modulo N in the
single-operand case and modulo 2*N in the two-operand case."

However, we don't perform this modulo-operation on the indices found in the
mask.
I will fix this.

Reply via email to