Skip to content

Commit

Permalink
Merge pull request #902 from JohanMabille/arm_ci_fix
Browse files Browse the repository at this point in the history
Disable alignment test on ARM with GCC
  • Loading branch information
JohanMabille committed Feb 20, 2023
2 parents ebc5500 + 26732bc commit 5d07ae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ TEST_CASE("[is_aligned]")
void* aligned_f = std::align(alignment, sizeof(f), unaligned_f, aligned_f_size);
CHECK_UNARY(xsimd::is_aligned(aligned_f));

// GCC does not generate correct alignment on ARM
// (see https://godbolt.org/z/obv1n8bWq)
#if !(XSIMD_WITH_NEON && defined(__GNUC__) && !defined(__clang__))
alignas(alignment) char aligned[8];
CHECK_UNARY(xsimd::is_aligned(&aligned[0]));
CHECK_UNARY(!xsimd::is_aligned(&aligned[3]));
#endif
}
#endif

0 comments on commit 5d07ae0

Please sign in to comment.