Skip to content

[SYCL][ESIMD] Fix an issue with intrinsic generation #7026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 17, 2022
Merged

Conversation

fineg74
Copy link
Contributor

@fineg74 fineg74 commented Oct 11, 2022

No description provided.

@fineg74
Copy link
Contributor Author

fineg74 commented Oct 11, 2022

Complementary test PR: intel/llvm-test-suite#1319

@@ -328,14 +328,14 @@ class ESIMDIntrinDescTable {
{"rdregion",
{"rdregion", {a(0), t(3), t(4), t(5), a(1), t(6)}, nk(-1)}},
{"rdindirect",
{"rdregion", {a(0), c32(0), t(2), c32(0), a(1), t(3)}, nk(-1)}},
{"rdregion", {a(0), c32(0), c32(1), c32(0), a(1), t(3)}, nk(-1)}},
Copy link
Contributor

Choose a reason for hiding this comment

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

what this argument means
### * arg3: i32 stride in elements, constant
? It is strange it is forced to constant 1

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, it is
### * arg2: i32 width in elements, constant
why it is forced to 1?

Copy link
Contributor

Choose a reason for hiding this comment

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

I talked to @vmustya, 1 for indirect version means "number of elements per offset", so it seems correct.

@bader bader merged commit 20b1bea into intel:sycl Oct 17, 2022
@fineg74 fineg74 deleted the iselect branch October 18, 2022 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants