xtensor-stack/xsimd

__builtin_shufflevector seems to be never enabled

lu1and10 opened this issue · 0 comments

It seems that:

#if defined(__has_builtin)
#if __has_builtin(__builtin_shuffle_vector)
#define builtin_shuffle __builtin_shuffle_vector
#endif
#endif

should be:

#if defined(__has_builtin)
#if __has_builtin(__builtin_shufflevector)
#define builtin_shuffle __builtin_shufflevector
#endif
#endif

See references:
https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
and
https://clang.llvm.org/docs/LanguageExtensions.html#langext-builtin-shufflevector