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 xcvbitmanip and type fixes #97

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

PaoloS02
Copy link
Contributor

@PaoloS02 PaoloS02 commented Dec 15, 2023

This patch adds the C API header file for the xcvbitmanip 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.

The patch also adds a fix for the types of the operands of some bitmanip builtins that were wrongly declared as signed instead of unsigned or as not constant arguments.

Finally the patch adds the basic cmake support for the CORE-V C API header files and adds the xcvbitmanip header file to the cmake list.
The other C API header patches need to follow this.

@PaoloS02 PaoloS02 changed the title C API header xcvbitmanip C API header xcvbitmanip and type fixes Dec 15, 2023
This patch fixes the types of arguments and return value of the
bitmanip CORE-V Clang builtins extract, ff1, fl1, clb and cnt so
that they follow the spec.
This commit adds the C API header to serve as an interface for
the intrinsic functions provided with the CORE-V xcvbitmanip
extension.

The commit includes the addition of the header itself, the update of
cmake to support this header file and more to follow from RISC-V
and a clang CodeGen test that checks the integrity of the call to the
wrapper functions designed in the C API CORE-V bitmanip header.
@PaoloS02 PaoloS02 merged commit 6007f6d into openhwgroup:development Dec 28, 2023
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