Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#187 prevent clang from trying to use __builtin_shuffle() #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions simdpp/detail/insn/permute4.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ uint32x4 i_permute4(const uint32x4& a)
#elif SIMDPP_USE_SSE2
return _mm_shuffle_epi32(a.native(), _MM_SHUFFLE(s3, s2, s1, s0));
#elif SIMDPP_USE_NEON
#if __GNUC__
#if __GNUC__ && !__clang__
return __builtin_shuffle(a.native(), a.native(), (uint32x4_t){s0, s1, s2, s3});
#else
return detail::neon_shuffle_int32x4::permute4<s0,s1,s2,s3>(a);
Expand Down Expand Up @@ -151,7 +151,7 @@ float32x4 i_permute4(const float32x4& a)
#elif SIMDPP_USE_SSE2
return _mm_shuffle_ps(a.native(), a.native(), _MM_SHUFFLE(s3, s2, s1, s0));
#elif SIMDPP_USE_NEON
#if __GNUC__ && SIMDPP_USE_NEON_FLT_SP
#if __GNUC__ && !__clang__ && SIMDPP_USE_NEON_FLT_SP
return __builtin_shuffle(a.native(), a.native(), (uint32x4_t){s0, s1, s2, s3});
#else
return float32x4(detail::neon_shuffle_int32x4::permute4<s0,s1,s2,s3>(int32x4(a)));
Expand Down