diff --git a/tests/vector_api/generate_vector_api.py b/tests/vector_api/generate_vector_api.py index bc82cd086..f5a3824be 100755 --- a/tests/vector_api/generate_vector_api.py +++ b/tests/vector_api/generate_vector_api.py @@ -48,8 +48,11 @@ if (!check_vector_values<${type}, ${size}>(swizzledVec, reversed_vals)) { resAcc[0] = false; } - if (std::alignment_of>::value != - sizeof(${type}) * (${size} == 3 ? 4 : ${size})) { + auto expectedAlignment = sizeof(${type}) * (${size} == 3 ? 4 : ${size}); + auto actualAlignment = + std::alignment_of>::value; + // Maximum alignment is limited to 64 by SYCL2020 + if (actualAlignment != expectedAlignment && expectedAlignment <= 64) { resAcc[0] = false; } if (!check_convert_as_all_types<${type}, ${size}>(inputVec)) {