Skip to content

Commit

Permalink
Fix compiling SIMD libraray with NEON and gcc-13
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Aug 10, 2023
1 parent 11c6cf7 commit 3c7c0e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions simd/src/Kokkos_SIMD_NEON.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,8 @@ class simd<std::uint64_t, simd_abi::neon_fixed_size<2>> {
simd<std::uint64_t, simd_abi::neon_fixed_size<2>> const& lhs,
simd<std::uint64_t, simd_abi::neon_fixed_size<2>> const& rhs) noexcept {
return simd<std::uint64_t, simd_abi::neon_fixed_size<2>>(vshlq_u64(
static_cast<uint64x2_t>(lhs), vnegq_s64(static_cast<uint64x2_t>(rhs))));
static_cast<uint64x2_t>(lhs),
vnegq_s64(vreinterpretq_s64_u64(static_cast<uint64x2_t>(rhs)))));
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION friend simd<
std::uint64_t, simd_abi::neon_fixed_size<2>>
Expand All @@ -929,7 +930,8 @@ class simd<std::uint64_t, simd_abi::neon_fixed_size<2>> {
simd<std::uint64_t, simd_abi::neon_fixed_size<2>> const& lhs,
simd<std::uint64_t, simd_abi::neon_fixed_size<2>> const& rhs) noexcept {
return simd<std::uint64_t, simd_abi::neon_fixed_size<2>>(
vshlq_u64(static_cast<uint64x2_t>(lhs), static_cast<uint64x2_t>(rhs)));
vshlq_u64(static_cast<uint64x2_t>(lhs),
vreinterpretq_s64_u64(static_cast<uint64x2_t>(rhs))));
}
};

Expand Down

0 comments on commit 3c7c0e1

Please sign in to comment.