diff --git a/test/test_shuffle.cpp b/test/test_shuffle.cpp index 1719d329e..ff4ab1ed5 100644 --- a/test/test_shuffle.cpp +++ b/test/test_shuffle.cpp @@ -9,6 +9,8 @@ * The full license is in the file LICENSE, distributed with this software. * ****************************************************************************/ +#include + #include "xsimd/xsimd.hpp" #ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE @@ -620,13 +622,14 @@ struct shuffle_test void transpose() { B b_lhs = B::load_unaligned(lhs.data()); - std::array b_matrix; + // Due to issue with Qemu AVX512, we rely on vector for this otherwise static array + std::vector> b_matrix = {}; for (size_t i = 0; i < size; ++i) - b_matrix[i] = b_lhs; - std::array ref_matrix; + b_matrix.emplace_back(b_lhs); + std::vector> ref_matrix = {}; for (size_t i = 0; i < size; ++i) for (size_t j = 0; j < size; ++j) - ref_matrix[i * size + j] = lhs[i]; + ref_matrix.emplace_back(lhs[i]); INFO("transpose"); xsimd::transpose(b_matrix.data(), b_matrix.data() + b_matrix.size());