Skip to content
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

Add llvm.abs.i32 translation #758

Merged
merged 4 commits into from
Oct 7, 2020
Merged

Conversation

MochalovaAn
Copy link
Contributor

Add llvm.abs.i32 translation to "s_abs" instruction.
Add test for this.

@bader
Copy link
Contributor

bader commented Sep 30, 2020

Add llvm.abs.i32 translation to "s_abs" instruction.

I think this implementation is able to handle any type, not just i32.

@svenvh
Copy link
Member

svenvh commented Sep 30, 2020

Add llvm.abs.i32 translation to "s_abs" instruction.

I think this implementation is able to handle any type, not just i32.

I think so too; it would be good to test another type (e.g. i8) in the test that was added.

@MochalovaAn, there is a spurious merge commit in this pull request too. When you update the change, could you remove that and rebase on the latest master branch?

Add llvm.abs.i32 translation to "s_abs" instruction.
Add test for this.

Signed-off-by: amochalo <anastasiya.mochalova@intel.com>
Signed-off-by: amochalo <anastasiya.mochalova@intel.com>
Signed-off-by: amochalo <anastasiya.mochalova@intel.com>
Signed-off-by: amochalo <anastasiya.mochalova@intel.com>
Copy link
Contributor

@AlexeySotkin AlexeySotkin left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@AlexeySotkin AlexeySotkin merged commit 9298fac into KhronosGroup:master Oct 7, 2020
vmaksimo pushed a commit to vmaksimo/SPIRV-LLVM-Translator that referenced this pull request Sep 1, 2022
* Add llvm.abs.i32 intrinsic translation

Add translation of @llvm.abs.* to `s_abs` extended instruction.

Signed-off-by: amochalo <anastasiya.mochalova@intel.com>
Change-Id: I789fc9902eaec18b781da2965976a36f593cad1a
Reviewed-on: https://git-amr-2.devtools.intel.com/gerrit/275911
Reviewed-by: Sotkin, Alexey <alexey.sotkin@intel.com>
Tested-by: Sotkin, Alexey <alexey.sotkin@intel.com>
Reviewed-by: Pengfei Wang <pengfei.wang@intel.com>
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.

4 participants