|
|
adf40c |
From fbb1523f7874ac9de37989cbd6c17af70de68f28 Mon Sep 17 00:00:00 2001
|
|
|
adf40c |
From: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
|
|
|
adf40c |
Date: Fri, 13 May 2022 11:34:53 +0200
|
|
|
adf40c |
Subject: [PATCH] Do not run tests on unsupported architectures
|
|
|
adf40c |
|
|
|
adf40c |
---
|
|
|
adf40c |
test/test_batch_manip.cpp | 5 +++++
|
|
|
adf40c |
test/test_sum.hpp | 3 +++
|
|
|
adf40c |
2 files changed, 8 insertions(+)
|
|
|
adf40c |
|
|
|
adf40c |
diff --git a/test/test_batch_manip.cpp b/test/test_batch_manip.cpp
|
|
|
adf40c |
index 45c8939f8..b8ca978d3 100644
|
|
|
adf40c |
--- a/test/test_batch_manip.cpp
|
|
|
adf40c |
+++ b/test/test_batch_manip.cpp
|
|
|
adf40c |
@@ -9,6 +9,9 @@
|
|
|
adf40c |
* The full license is in the file LICENSE, distributed with this software. *
|
|
|
adf40c |
****************************************************************************/
|
|
|
adf40c |
|
|
|
adf40c |
+#include "xsimd/xsimd.hpp"
|
|
|
adf40c |
+#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
|
|
|
adf40c |
+
|
|
|
adf40c |
#include "test_utils.hpp"
|
|
|
adf40c |
|
|
|
adf40c |
namespace xsimd
|
|
|
adf40c |
@@ -212,3 +215,5 @@ TYPED_TEST(swizzle_test, swizzle_dup)
|
|
|
adf40c |
{
|
|
|
adf40c |
this->swizzle_dup();
|
|
|
adf40c |
}
|
|
|
adf40c |
+
|
|
|
adf40c |
+#endif
|
|
|
adf40c |
diff --git a/test/test_sum.hpp b/test/test_sum.hpp
|
|
|
adf40c |
index 89af1a236..e5edeaf0f 100644
|
|
|
adf40c |
--- a/test/test_sum.hpp
|
|
|
adf40c |
+++ b/test/test_sum.hpp
|
|
|
adf40c |
@@ -1,6 +1,7 @@
|
|
|
adf40c |
#ifndef XSIMD_TEST_SUM_HPP
|
|
|
adf40c |
#define XSIMD_TEST_SUM_HPP
|
|
|
adf40c |
#include "xsimd/xsimd.hpp"
|
|
|
adf40c |
+#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
|
|
|
adf40c |
|
|
|
adf40c |
struct sum
|
|
|
adf40c |
{
|
|
|
adf40c |
@@ -29,3 +30,5 @@ extern template float sum::operator()(xsimd::avx, float const*, unsigned);
|
|
|
adf40c |
#endif
|
|
|
adf40c |
|
|
|
adf40c |
#endif
|
|
|
adf40c |
+
|
|
|
adf40c |
+#endif
|