Skip to content

Commit 16ef83e

Browse files
authored
Merge pull request #462 from serge-sans-paille/feature/fallback-only
Make it possible to test fallback implementation on non-x86, non-arm …
2 parents 7babf77 + c462444 commit 16ef83e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/test_utils.hpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,12 @@ namespace xsimd
539539
* Testing types lists *
540540
***********************/
541541

542+
#if XSIMD_X86_INSTR_SET == XSIMD_VERSION_NUMBER_NOT_AVAILABLE && XSIMD_ARM_INSTR_SET == XSIMD_VERSION_NUMBER_NOT_AVAILABLE
543+
#define XSIMD_FALLBACK_DELIMITER
544+
#else
545+
#define XSIMD_FALLBACK_DELIMITER ,
546+
#endif
547+
542548
template <class T>
543549
using to_testing_types = xsimd::mpl::cast_t<T, testing::Types>;
544550

@@ -588,7 +594,7 @@ namespace xsimd
588594
batch<int64_t, 2>
589595
#endif
590596
#if defined(XSIMD_ENABLE_FALLBACK)
591-
,
597+
XSIMD_FALLBACK_DELIMITER
592598
batch<int32_t, 7>,
593599
batch<int64_t, 3>
594600
#endif
@@ -617,7 +623,7 @@ namespace xsimd
617623
batch<double, 2>
618624
#endif
619625
#if defined(XSIMD_ENABLE_FALLBACK)
620-
,
626+
XSIMD_FALLBACK_DELIMITER
621627
batch<float, 7>,
622628
batch<double, 3>
623629
#endif
@@ -639,7 +645,7 @@ namespace xsimd
639645
batch<int32_t, 4>
640646
#endif
641647
#if defined(XSIMD_ENABLE_FALLBACK)
642-
,
648+
XSIMD_FALLBACK_DELIMITER
643649
batch<int32_t, 7>
644650
#endif
645651
>;
@@ -750,7 +756,7 @@ using conversion_type_list = xsimd::mpl::type_list<
750756
conversion_param<2, 16>
751757
#endif
752758
#if defined(XSIMD_ENABLE_FALLBACK)
753-
,
759+
XSIMD_FALLBACK_DELIMITER
754760
conversion_param<3, 32>
755761
#endif
756762
>;

0 commit comments

Comments
 (0)