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

P4C-DPDK - Incorrect constant value when there is a subtract operation involved with a constant #3410

Closed
wants to merge 13 commits into from

Conversation

github-sajan
Copy link
Contributor

This PR addresses the issue in dpdk backend when there is subtraction operation with constant.

  1. If isSigned flag is set and is not 8-bit aligned, sign extension (32/64 bit) is done for the constant
  2. If isSigned flag is not set and is not 8-bit aligned,
    insert an "BAnd" node after the "Add" for masking the value to the original bitwidth.

@github-sajan
Copy link
Contributor Author

Created a new PR #3411

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