@@ -32,29 +32,37 @@ struct load_store_test
3232 using uint16_vector_type = std::vector<uint16_t , allocator<uint16_t >>;
3333 using int32_vector_type = std::vector<int32_t , allocator<int32_t >>;
3434 using uint32_vector_type = std::vector<uint32_t , allocator<uint32_t >>;
35+ #ifndef XSIMD_WITH_ALTIVEC
3536 using int64_vector_type = std::vector<int64_t , allocator<int64_t >>;
3637 using uint64_vector_type = std::vector<uint64_t , allocator<uint64_t >>;
38+ #endif
3739#ifdef XSIMD_32_BIT_ABI
3840 using long_vector_type = std::vector<long , allocator<long >>;
3941 using ulong_vector_type = std::vector<unsigned long , allocator<unsigned long >>;
4042#endif
4143 using float_vector_type = std::vector<float , allocator<float >>;
44+ #if (!XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
4245 using double_vector_type = std::vector<double , allocator<double >>;
46+ #endif
4347
4448 int8_vector_type i8_vec;
4549 uint8_vector_type ui8_vec;
4650 int16_vector_type i16_vec;
4751 uint16_vector_type ui16_vec;
4852 int32_vector_type i32_vec;
4953 uint32_vector_type ui32_vec;
54+ #ifndef XSIMD_WITH_ALTIVEC
5055 int64_vector_type i64_vec;
5156 uint64_vector_type ui64_vec;
57+ #endif
5258#ifdef XSIMD_32_BIT_ABI
5359 long_vector_type l_vec;
5460 ulong_vector_type ul_vec;
5561#endif
5662 float_vector_type f_vec;
63+ #if (!XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
5764 double_vector_type d_vec;
65+ #endif
5866
5967 array_type expected;
6068
@@ -66,8 +74,10 @@ struct load_store_test
6674 init_test_vector (ui16_vec);
6775 init_test_vector (i32_vec);
6876 init_test_vector (ui32_vec);
77+ #ifndef XSIMD_WITH_ALTIVEC
6978 init_test_vector (i64_vec);
7079 init_test_vector (ui64_vec);
80+ #endif
7181#ifdef XSIMD_32_BIT_ABI
7282 init_test_vector (l_vec);
7383 init_test_vector (ul_vec);
@@ -84,14 +94,16 @@ struct load_store_test
8494 test_load_impl (ui16_vec, " load uint16_t" );
8595 test_load_impl (i32_vec, " load int32_t" );
8696 test_load_impl (ui32_vec, " load uint32_t" );
97+ #ifndef XSIMD_WITH_ALTIVEC
8798 test_load_impl (i64_vec, " load int64_t" );
8899 test_load_impl (ui64_vec, " load uint64_t" );
100+ #endif
89101#ifdef XSIMD_32_BIT_ABI
90102 test_load_impl (l_vec, " load long" );
91103 test_load_impl (ul_vec, " load unsigned long" );
92104#endif
93105 test_load_impl (f_vec, " load float" );
94- #if !XSIMD_WITH_NEON || XSIMD_WITH_NEON64
106+ #if ( !XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
95107 test_load_impl (d_vec, " load double" );
96108#endif
97109 }
@@ -104,14 +116,16 @@ struct load_store_test
104116 test_store_impl (ui16_vec, " load uint16_t" );
105117 test_store_impl (i32_vec, " load int32_t" );
106118 test_store_impl (ui32_vec, " load uint32_t" );
119+ #ifndef XSIMD_WITH_ALTIVEC
107120 test_store_impl (i64_vec, " load int64_t" );
108121 test_store_impl (ui64_vec, " load uint64_t" );
122+ #endif
109123#ifdef XSIMD_32_BIT_ABI
110124 test_store_impl (l_vec, " load long" );
111125 test_store_impl (ul_vec, " load unsigned long" );
112126#endif
113127 test_store_impl (f_vec, " load float" );
114- #if !XSIMD_WITH_NEON || XSIMD_WITH_NEON64
128+ #if ( !XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
115129 test_store_impl (d_vec, " load double" );
116130#endif
117131 }
@@ -123,15 +137,17 @@ struct load_store_test
123137 test_gather_impl (ui16_vec, " gather uint16_t" );
124138 test_gather_impl (i32_vec, " gather int32_t" );
125139 test_gather_impl (ui32_vec, " gather uint32_t" );
140+ #ifndef XSIMD_WITH_ALTIVEC
126141 test_gather_impl (i64_vec, " gather int64_t" );
127142 test_gather_impl (ui64_vec, " gather uint64_t" );
143+ #endif
128144#ifdef XSIMD_32_BIT_ABI
129145 test_gather_impl (l_vec, " gather long" );
130146 test_gather_impl (ul_vec, " gather unsigned long" );
131147#endif
132148 test_gather_impl (f_vec, " gather float" );
133149 test_gather_impl (f_vec, " gather float" );
134- #if !XSIMD_WITH_NEON || XSIMD_WITH_NEON64
150+ #if ( !XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
135151 test_gather_impl (d_vec, " gather double" );
136152#endif
137153 }
@@ -144,14 +160,16 @@ struct load_store_test
144160 test_scatter_impl (ui16_vec, " scatter uint16_t" );
145161 test_scatter_impl (i32_vec, " scatter int32_t" );
146162 test_scatter_impl (ui32_vec, " scatter uint32_t" );
163+ #ifndef XSIMD_WITH_ALTIVEC
147164 test_scatter_impl (i64_vec, " scatter int64_t" );
148165 test_scatter_impl (ui64_vec, " scatter uint64_t" );
166+ #endif
149167#ifdef XSIMD_32_BIT_ABI
150168 test_scatter_impl (l_vec, " scatter long" );
151169 test_scatter_impl (ul_vec, " scatter unsigned long" );
152170#endif
153171 test_scatter_impl (f_vec, " scatter float" );
154- #if !XSIMD_WITH_NEON || XSIMD_WITH_NEON64
172+ #if ( !XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
155173 test_scatter_impl (d_vec, " scatter double" );
156174#endif
157175 }
0 commit comments