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

Dpdk Backend: Fix shift overlimit error for valid bit slicing operation #3578

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

usha1830
Copy link
Contributor

Bit slice operations are lowered into shift and mask operations. While creating the shift operation, the type of shift amount is also set same as the left operand which is not correct. The shift operation handling assumes that the constant is of Type_InfInt and handles constant of only Type_infInt type.
To fix this , the type of constant shift amount is set to Type_InfInt.

@mihaibudiu mihaibudiu merged commit 19fe76e into p4lang:main Oct 17, 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

Successfully merging this pull request may close these issues.

2 participants