Skip to content

Commit

Permalink
Merge pull request #764 from 0x12CC/vec_as
Browse files Browse the repository at this point in the history
Disable invalid `vec::as` test cases
  • Loading branch information
bader authored Aug 17, 2023
2 parents d5e7148 + 4be48e0 commit 2c00dc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/common/common_vec.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ bool check_vector_as(sycl::vec<vecType, N> inputVec) {
template <typename vecType, int N, typename asType, int asN>
bool check_vectorN_as(sycl::vec<vecType, N> inputVec) {
if constexpr (sizeof(sycl::vec<vecType, N>) ==
sizeof(sycl::vec<asType, asN>))
sizeof(sycl::vec<asType, asN>) &&
(sizeof(vecType) * N) == (sizeof(asType) * asN))
return check_vector_as<vecType, N, asType, asN>(inputVec);
else
return true;
Expand Down

0 comments on commit 2c00dc2

Please sign in to comment.