diff --git a/tests/math_builtin_api/math_builtin.h b/tests/math_builtin_api/math_builtin.h index 1f76d6e01..9f30eb89b 100644 --- a/tests/math_builtin_api/math_builtin.h +++ b/tests/math_builtin_api/math_builtin.h @@ -139,7 +139,7 @@ bool verify(sycl_cts::util::logger& log, sycl::vec a, sycl::vec b = r.res; for (int i = 0; i < sycl_cts::math::numElements(a); i++) if (r.undefined.find(i) == r.undefined.end() && - !verify(log, getElement(a, i), getElement(b, i), accuracy, comment)) + !verify(log, a[i], b[i], accuracy, comment)) return false; return true; }