Skip to content

Commit 7e2ca27

Browse files
authored
[ESIMD] Fix lsc_slm_gather.cpp test that failed with opencl:gpu (#11356)
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent aebeb56 commit 7e2ca27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/ESIMD/lsc/Inputs/lsc_slm_load.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bool test(queue Q, uint32_t PMask = ~0) {
146146
Tuint ExpectedVal =
147147
IsMaskSet ? (ExpectedValBase + ChannelId + J * NChannels) & VMask
148148
: sycl::bit_cast<Tuint>(MergeValue);
149-
Tuint ComputedVal = sycl::bit_cast<Tuint>(Out[OutIndex]);
149+
Tuint ComputedVal = sycl::bit_cast<Tuint>(Out[OutIndex]) & VMask;
150150
if (ComputedVal != ExpectedVal && NErrors++ < 32) {
151151
std::cout << "Error: " << OutIndex << ": Value = " << ComputedVal
152152
<< ", Expected value = " << ExpectedVal

0 commit comments

Comments
 (0)