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

C API header xcvalu #95

Merged
merged 2 commits into from
Jan 1, 2024
Merged

Conversation

PaoloS02
Copy link
Contributor

This patch adds the C API header file for the xcvalu Clang builtins.
It also adds the CodeGen test that checks that the wrapper functions defined in the header turn into the right LLVM instrinsic when called.
Finally the patch adds the cmake support for the header file. This needs to follow the analogous patch for the xcvbitmanip builtins as that one includes the basic cmake support to add all the headers.

This commit adds the C API header to serve as an interface for
the intrinsic functions provided with the CORE-V xcvalu extension.

The commit includes the addition of the header itself and a clang
CodeGen test that checks the integrity of the call to the wrapper
functions designed in the C API CORE-V alu header.
This patch removes a redundant comparison of an unsigned value as
greater or equal to zero from code written for the CV ALU LLVM
instrinsics.
This redundant comparison caused a warning when building LLVM.
@PaoloS02 PaoloS02 merged commit 6a369cc into openhwgroup:development Jan 1, 2024
2 of 3 checks passed
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.

1 participant