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

SIMD clang builtin fixes #101

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

PaoloS02
Copy link
Contributor

This PR fixes the constant parameters type definition for the shuffle.sci.* clang builtins so that they constant fold.
It also adds a check on the value range of constant parameters for add.h, sub.h, shuffle.sci.h, cplxmul.r, cplxmul.i and subrotmj.
Finally it fixes the clang codegen test to use only in range values for the shuffle.sci.h test cases.

Set the immediate argument of the clang builtins for shuffle.sci.h
and shuffle.sci.b to constant fold.
…ins.

Add a check for the constant operands of SIMD clang builtins to
be in range.
This is added for the builtins: add.h, sub.h, shuffle.sci.h (the b
version uses all the bits of the constant operand and so no need for
a custom range check), cplxmul.r, cplxmul.i, subrotmj.

Add test cases for the corresponding out of range errors.
Use in range values in simd.c test for shuffle.sci.h.
@PaoloS02 PaoloS02 merged commit 3fe1fc7 into openhwgroup:development Dec 28, 2023
3 of 4 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