Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions sycl/test-e2e/InvokeSimd/Spec/simd_mask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* This test also runs with all types of VISA link time optimizations enabled.
*/

#include <sycl/detail/boost/mp11.hpp>
#include <sycl/detail/core.hpp>
#include <sycl/ext/intel/esimd.hpp>
#include <sycl/ext/oneapi/experimental/invoke_simd.hpp>
Expand Down Expand Up @@ -141,18 +140,22 @@ int main() {
<< "\n";
bool passed = true;
const bool SupportsDouble = dev.has(aspect::fp64);
using namespace sycl::detail::boost::mp11;
using MaskTypes =
std::tuple<char, char16_t, char32_t, wchar_t, signed char, signed short,
signed int, signed long, signed long long, unsigned char,
unsigned short, unsigned int, unsigned long,
unsigned long long, float, double>;
tuple_for_each(MaskTypes{}, [&](auto &&x) {
using T = std::remove_reference_t<decltype(x)>;
if (std::is_same_v<T, double> && !SupportsDouble)
return;
passed &= !test<T>(q);
});
std::apply(
[&](auto &&...xs) {
auto f = [&](auto &&x) {
using T = std::remove_reference_t<decltype(x)>;
if (std::is_same_v<T, double> && !SupportsDouble)
return;
passed &= !test<T>(q);
};
((f(std::forward<decltype(xs)>(xs)), ...));
},
MaskTypes{});
std::cout << (passed ? "Test passed\n" : "TEST FAILED\n");
return passed ? 0 : 1;
}
1 change: 0 additions & 1 deletion sycl/test-e2e/InvokeSimd/Spec/simd_mask_merge.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Check that full compilation works:
// RUN: %{build} -fno-sycl-device-code-split-esimd -Xclang -fsycl-allow-func-ptr -o %t.out
// RUN: env IGC_VCSaveStackCallLinkage=1 IGC_VCDirectCallsOnly=1 %{run} %t.out
#include <sycl/detail/boost/mp11.hpp>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

#include <sycl/detail/core.hpp>
#include <sycl/ext/intel/esimd.hpp>
#include <sycl/ext/oneapi/experimental/invoke_simd.hpp>
Expand Down
Loading