Skip to content

Commit 7e1d26a

Browse files
double
1 parent 37548ca commit 7e1d26a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/test_batch_cast.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,18 @@ struct batch_cast_test
7070
using uint16_batch = xsimd::batch<uint16_t>;
7171
using int32_batch = xsimd::batch<int32_t>;
7272
using uint32_batch = xsimd::batch<uint32_t>;
73+
using float_batch = xsimd::batch<float>;
74+
#ifndef XSIMD_WITH_ALTIVEC
7375
using int64_batch = xsimd::batch<int64_t>;
7476
using uint64_batch = xsimd::batch<uint64_t>;
75-
using float_batch = xsimd::batch<float>;
7677
using double_batch = xsimd::batch<double>;
78+
#endif
7779

7880
std::vector<uint64_t> int_test_values;
79-
std::vector<float> float_test_values;
8081
std::vector<double> double_test_values;
8182

83+
std::vector<float> float_test_values;
84+
8285
batch_cast_test()
8386
{
8487
int_test_values = {
@@ -182,12 +185,14 @@ struct batch_cast_test
182185
test_cast_impl<uint32_batch, uint32_batch>(test_value, "batch cast uint32 -> uint32");
183186
test_cast_impl<uint32_batch, float_batch>(test_value, "batch cast uint32 -> float");
184187

188+
#ifndef XSIMD_WITH_ALTIVEC
185189
test_cast_impl<int64_batch, int64_batch>(test_value, "batch cast int64 -> int64");
186190
test_cast_impl<int64_batch, uint64_batch>(test_value, "batch cast int64 -> uint64");
187191
test_cast_impl<int64_batch, double_batch>(test_value, "batch cast int64 -> double");
188192
test_cast_impl<uint64_batch, int64_batch>(test_value, "batch cast uint64 -> int64");
189193
test_cast_impl<uint64_batch, uint64_batch>(test_value, "batch cast uint64 -> uint64");
190194
test_cast_impl<uint64_batch, double_batch>(test_value, "batch cast uint64 -> double");
195+
#endif
191196
}
192197

193198
for (const auto& test_value : float_test_values)
@@ -197,12 +202,14 @@ struct batch_cast_test
197202
test_cast_impl<float_batch, float_batch>(test_value, "batch cast float -> float");
198203
}
199204

205+
#ifndef XSIMD_WITH_ALTIVEC
200206
for (const auto& test_value : double_test_values)
201207
{
202208
test_cast_impl<double_batch, int64_batch>(test_value, "batch cast double -> int64");
203209
test_cast_impl<double_batch, uint64_batch>(test_value, "batch cast double -> uint64");
204210
test_cast_impl<double_batch, double_batch>(test_value, "batch cast double -> double");
205211
}
212+
#endif
206213
}
207214

208215
#if 0 && XSIMD_X86_INSTR_SET >= XSIMD_X86_AVX_VERSION

0 commit comments

Comments
 (0)