https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61618
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- Testcase (compile with -O2 -mavx): --cut here-- typedef float V __attribute__ ((vector_size (32))); typedef unsigned int VI __attribute__ ((vector_size (32))); extern V a, b, c, d; void test_9 (void) { VI mask = { 13, 11, 10, 15, 8, 5, 14, 8 }; d = __builtin_shuffle (a, b, mask); } --cut here--