https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94680
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |uros at gcc dot gnu.org
Target| |x86_64-linux
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
typedef float V __attribute__((vector_size(32)));
typedef int VI __attribute__((vector_size(32)));
V
foo (V x)
{
return __builtin_shuffle (x, (V) { 0, 0, 0, 0, 0, 0, 0, 0 }, (VI) { 0, 1, 2,
3, 8, 9, 10, 11 });
}
with -mavx similarly could be done just using vmovps.
Or
typedef float V __attribute__((vector_size(64)));
typedef int VI __attribute__((vector_size(64)));
V
foo (V x)
{
return __builtin_shuffle (x, (V) { 0 }, (VI) { 0, 1, 2, 3, 4, 5, 6, 7, 16,
17, 18, 19, 20, 21, 22, 23 });
}
using -mavx512f.