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

[SYCL][ESIMD]Add tests for support for different types for lsc functions #1305

Merged
merged 4 commits into from
Oct 5, 2022
Merged

[SYCL][ESIMD]Add tests for support for different types for lsc functions #1305

merged 4 commits into from
Oct 5, 2022

Conversation

fineg74
Copy link

@fineg74 fineg74 commented Oct 4, 2022

No description provided.

@fineg74 fineg74 requested a review from a team as a code owner October 4, 2022 04:07
@fineg74
Copy link
Author

fineg74 commented Oct 4, 2022

Complementary compiler PR intel/llvm#6952

@@ -11,8 +11,9 @@
template <int case_num> class KernelID;

template <typename T> T get_rand() {
T v = rand();
if constexpr (sizeof(T) > 4)
using Tuint = sycl::_V1::ext::intel::esimd::detail::uint_type_t<sizeof(T)>;
Copy link

@v-klochkov v-klochkov Oct 4, 2022

Choose a reason for hiding this comment

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

I believe 'detail' namespace is for SYCL internal needs only, it should not be used in tests.
uint_type_t can be defined in this 'common.hpp' file.

v = (v << 32) | rand();
return v;
return (*(T *)&v);

Choose a reason for hiding this comment

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

Suggested change
return (*(T *)&v);
return bit_cast<T>(v);

@v-klochkov v-klochkov merged commit eb4ecde into intel:intel Oct 5, 2022
v-klochkov added a commit that referenced this pull request Oct 6, 2022
@fineg74 fineg74 deleted the lsc_float_test branch January 5, 2023 17:49
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…el#1315) (intel#1305)

The removed sub-tests were incorrect as they stored garbage (random return from lsc_block_load(with preducate=0) to result and then checking it with something meaningful expected values.
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…ons (intel#1305)

* Add tests for support for different types for lsc functions
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…ons (intel/llvm-test-suite#1305)

* Add tests for support for different types for lsc functions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants