6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From 6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b Mon Sep 17 00:00:00 2001
  2. From: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
  3. Date: Fri, 13 May 2022 11:34:53 +0200
  4. Subject: [PATCH] Do not run tests on unsupported architectures
  5. ---
  6. test/test_batch_manip.cpp | 5 +++++
  7. test/test_sum.hpp | 3 +++
  8. 2 files changed, 8 insertions(+)
  9. diff --git a/test/test_batch_manip.cpp b/test/test_batch_manip.cpp
  10. index 45c8939f8..b8ca978d3 100644
  11. --- a/test/test_batch_manip.cpp
  12. +++ b/test/test_batch_manip.cpp
  13. @@ -9,6 +9,9 @@
  14. * The full license is in the file LICENSE, distributed with this software. *
  15. ****************************************************************************/
  16. +#include "xsimd/xsimd.hpp"
  17. +#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
  18. +
  19. #include "test_utils.hpp"
  20. namespace xsimd
  21. @@ -212,3 +215,5 @@ TYPED_TEST(swizzle_test, swizzle_dup)
  22. {
  23. this->swizzle_dup();
  24. }
  25. +
  26. +#endif
  27. diff --git a/test/test_sum.hpp b/test/test_sum.hpp
  28. index 89af1a236..e5edeaf0f 100644
  29. --- a/test/test_sum.hpp
  30. +++ b/test/test_sum.hpp
  31. @@ -1,6 +1,7 @@
  32. #ifndef XSIMD_TEST_SUM_HPP
  33. #define XSIMD_TEST_SUM_HPP
  34. #include "xsimd/xsimd.hpp"
  35. +#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
  36. struct sum
  37. {
  38. @@ -29,3 +30,5 @@ extern template float sum::operator()(xsimd::avx, float const*, unsigned);
  39. #endif
  40. #endif
  41. +
  42. +#endif