https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128709
--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> --- (In reply to Zoltan Hidvegi from comment #2) > Is the OOB case defined for __builtin_shuffle? Yes, I believe it's documented quite well in https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html "The elements of mask are considered modulo N in the single-operand case and modulo 2*N in the two-operand case." and a bit later: "Note that __builtin_shuffle is intentionally semantically compatible with the OpenCL shuffle and shuffle2 functions."
