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

Support llvm arithmetic/bit intrinsics #81

Open
iliya-diyachkov opened this issue Dec 10, 2021 · 1 comment
Open

Support llvm arithmetic/bit intrinsics #81

iliya-diyachkov opened this issue Dec 10, 2021 · 1 comment
Assignees

Comments

@iliya-diyachkov
Copy link
Contributor

We have 4 tests with unsupported llvm arithmetic/bit intrinsics. Most of them can be implemented substituting OpExtInst * or other single operations:

llvm-intrinsics/abs.ll (llvm.abs.* -> OpExtInst s_abs)
llvm-intrinsics/fp-intrinsics.ll  (llvm.*-> OpExtInst *)
llvm-intrinsics/fmuladd.ll  (llvm.fmuladd -> OpExtInst mad)
llvm-intrinsics/ctpop.ll (llvm.ctpop -> OpBitCount)
@iliya-diyachkov
Copy link
Contributor Author

Most of the intrinsics were added in #84, however fmuladd.ll is not fixed since we cannot differ llvm.fmuladd and llvm.fma in SPIRVInstructionSelector.cpp where we have G_FMA. Need to specialize it earlier or leave llvm.fmuladd intrinsic call till ISel.

@michalpaszkowski michalpaszkowski self-assigned this Oct 13, 2022
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

No branches or pull requests

2 participants