@@ -94,6 +94,8 @@ struct zip_test : zip_base<typename B::value_type, B::size>
9494
9595#if !XSIMD_WITH_AVX512F || XSIMD_WITH_AVX512BW
9696#define ZIP_BATCH_TYPES BATCH_TYPES
97+ #elif XSIMD_WITH_ALTIVEC
98+ #define ZIP_BATCH_TYPES xsimd::batch<float >, xsimd::batch<int32_t >
9799#else
98100#define ZIP_BATCH_TYPES xsimd::batch<float >, xsimd::batch<double >, xsimd::batch<int32_t >, xsimd::batch<int64_t >
99101#endif
@@ -347,7 +349,13 @@ struct compress_test
347349 }
348350};
349351
350- TEST_CASE_TEMPLATE (" [compress]" , B, BATCH_FLOAT_TYPES, xsimd::batch<uint8_t >, xsimd::batch<int8_t >, xsimd::batch<uint16_t >, xsimd::batch<int16_t >, xsimd::batch<uint32_t >, xsimd::batch<int32_t >, xsimd::batch<uint64_t >, xsimd::batch<int64_t >)
352+ #if XSIMD_WITH_ALTIVEC
353+ #define XSIMD_COMPRESS_TYPES BATCH_FLOAT_TYPES, xsimd::batch<uint8_t >, xsimd::batch<int8_t >, xsimd::batch<uint16_t >, xsimd::batch<int16_t >, xsimd::batch<uint32_t >, xsimd::batch<int32_t >
354+ #else
355+ #define XSIMD_COMPRESS_TYPES BATCH_FLOAT_TYPES, xsimd::batch<uint8_t >, xsimd::batch<int8_t >, xsimd::batch<uint16_t >, xsimd::batch<int16_t >, xsimd::batch<uint32_t >, xsimd::batch<int32_t >, xsimd::batch<uint64_t >, xsimd::batch<int64_t >
356+ #endif
357+
358+ TEST_CASE_TEMPLATE (" [compress]" , B, XSIMD_COMPRESS_TYPES)
351359{
352360 compress_test<B> Test;
353361 SUBCASE (" empty" )
@@ -443,7 +451,9 @@ struct expand_test
443451 }
444452};
445453
446- TEST_CASE_TEMPLATE (" [expand]" , B, BATCH_FLOAT_TYPES, xsimd::batch<uint8_t >, xsimd::batch<int8_t >, xsimd::batch<uint16_t >, xsimd::batch<int16_t >, xsimd::batch<uint32_t >, xsimd::batch<int32_t >, xsimd::batch<uint64_t >, xsimd::batch<int64_t >)
454+ #define XSIMD_EXPAND_TYPES XSIMD_COMPRESS_TYPES
455+
456+ TEST_CASE_TEMPLATE (" [expand]" , B, XSIMD_EXPAND_TYPES)
447457{
448458 expand_test<B> Test;
449459 SUBCASE (" empty" )
@@ -690,7 +700,13 @@ struct shuffle_test
690700 }
691701};
692702
693- TEST_CASE_TEMPLATE (" [shuffle]" , B, BATCH_FLOAT_TYPES, xsimd::batch<uint32_t >, xsimd::batch<int32_t >, xsimd::batch<uint64_t >, xsimd::batch<int64_t >)
703+ #if XSIMD_WITH_ALTIVEC
704+ #define XSIMD_SHUFFLE_TYPES BATCH_FLOAT_TYPES, xsimd::batch<uint32_t >, xsimd::batch<int32_t >
705+ #else
706+ #define XSIMD_SHUFFLE_TYPES BATCH_FLOAT_TYPES, xsimd::batch<uint32_t >, xsimd::batch<int32_t >, xsimd::batch<uint64_t >, xsimd::batch<int64_t >
707+ #endif
708+
709+ TEST_CASE_TEMPLATE (" [shuffle]" , B, XSIMD_SHUFFLE_TYPES)
694710{
695711 shuffle_test<B> Test;
696712 SUBCASE (" no-op" )
0 commit comments