Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit afdab79

Browse files
committed
Temporarily cancel the testing of intel/llvm#4892 and keep testing only intel/llvm#4514
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 5173f0d commit afdab79

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

SYCL/ESIMD/api/simd_view_copy_move_assign.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,31 @@ int main(void) {
133133
passed &= tests(q, "move assignment operator",
134134
[](auto &va_view, auto &vb_view)
135135
SYCL_ESIMD_FUNCTION { va_view = std::move(vb_view); });
136+
136137
// construct complete view of a vector.
138+
#if 0
139+
// TODO: When/if template arguments deducing is implemented for simd
140+
// constructor accepting simd_view are implemented, the following
141+
// shorter and more elegant version of the code may be used.
137142
passed &= tests(q, "constructor from simd",
138143
[](auto &va_view, auto &vb_view) SYCL_ESIMD_FUNCTION {
139144
simd vb = vb_view;
140145
simd_view new_vb_view = vb; // ctor from simd
141146
va_view = new_vb_view;
142147
});
148+
#else
149+
passed &= test<8>(q, "constructor from simd",
150+
[](auto &va_view, auto &vb_view) SYCL_ESIMD_FUNCTION {
151+
simd<int, 4> vb = vb_view;
152+
simd_view new_vb_view = vb; // ctor from simd
153+
va_view = new_vb_view;
154+
});
155+
passed &= test<1>(q, "constructor from simd",
156+
[](auto &va_view, auto &vb_view) SYCL_ESIMD_FUNCTION {
157+
simd<int, 1> vb = vb_view;
158+
simd_view new_vb_view = vb; // ctor from simd
159+
va_view = new_vb_view;
160+
});
161+
#endif
143162
return passed ? 0 : 1;
144163
}

0 commit comments

Comments
 (0)