https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100887
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Slightly adjusted so that it doesn't use uninitialized vars and does actually return what is computed: typedef unsigned __int128 U __attribute__((__vector_size__ (64))); typedef unsigned __int128 V __attribute__((__vector_size__ (32))); typedef unsigned __int128 W __attribute__((__vector_size__ (16))); W foo (U u, V v) { return __builtin_shufflevector (u, v, 0); }