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