Skip to content

Commit 74a98be

Browse files
WIP
1 parent f5ad033 commit 74a98be

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

test/test_batch_cast.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ struct batch_cast_test
7171
using int32_batch = xsimd::batch<int32_t>;
7272
using uint32_batch = xsimd::batch<uint32_t>;
7373
using float_batch = xsimd::batch<float>;
74-
#if !XSIMD_WITH_ALTIVEC
7574
using int64_batch = xsimd::batch<int64_t>;
7675
using uint64_batch = xsimd::batch<uint64_t>;
7776
using double_batch = xsimd::batch<double>;
78-
#endif
7977

8078
std::vector<uint64_t> int_test_values;
8179
std::vector<double> double_test_values;
@@ -185,14 +183,12 @@ struct batch_cast_test
185183
test_cast_impl<uint32_batch, uint32_batch>(test_value, "batch cast uint32 -> uint32");
186184
test_cast_impl<uint32_batch, float_batch>(test_value, "batch cast uint32 -> float");
187185

188-
#if !XSIMD_WITH_ALTIVEC
189186
test_cast_impl<int64_batch, int64_batch>(test_value, "batch cast int64 -> int64");
190187
test_cast_impl<int64_batch, uint64_batch>(test_value, "batch cast int64 -> uint64");
191188
test_cast_impl<int64_batch, double_batch>(test_value, "batch cast int64 -> double");
192189
test_cast_impl<uint64_batch, int64_batch>(test_value, "batch cast uint64 -> int64");
193190
test_cast_impl<uint64_batch, uint64_batch>(test_value, "batch cast uint64 -> uint64");
194191
test_cast_impl<uint64_batch, double_batch>(test_value, "batch cast uint64 -> double");
195-
#endif
196192
}
197193

198194
for (const auto& test_value : float_test_values)
@@ -202,14 +198,12 @@ struct batch_cast_test
202198
test_cast_impl<float_batch, float_batch>(test_value, "batch cast float -> float");
203199
}
204200

205-
#if !XSIMD_WITH_ALTIVEC
206201
for (const auto& test_value : double_test_values)
207202
{
208203
test_cast_impl<double_batch, int64_batch>(test_value, "batch cast double -> int64");
209204
test_cast_impl<double_batch, uint64_batch>(test_value, "batch cast double -> uint64");
210205
test_cast_impl<double_batch, double_batch>(test_value, "batch cast double -> double");
211206
}
212-
#endif
213207
}
214208

215209
#if 0 && XSIMD_X86_INSTR_SET >= XSIMD_X86_AVX_VERSION

test/test_explicit_batch_instantiation.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ namespace xsimd
2222
template class batch<signed short>;
2323
template class batch<unsigned int>;
2424
template class batch<signed int>;
25-
#if !XSIMD_WITH_ALTIVEC
2625
template class batch<unsigned long>;
2726
template class batch<signed long>;
28-
#endif
2927
template class batch<float>;
30-
#if (!XSIMD_WITH_NEON && !XSIMD_WITH_ALTIVEC) || XSIMD_WITH_NEON64
28+
#if !XSIMD_WITH_NEON || XSIMD_WITH_NEON64
3129
template class batch<double>;
3230
#endif
3331
}

0 commit comments

Comments
 (0)