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

Bug of loopsUnroll for loops with one parser state #3492

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

VolodymyrPeschanenkoIntel
Copy link
Contributor

loopsUnroll has a bug for unrolling loops with one parser state where such loop is restricted by header stack size only. These changes fix this bug. To see the problem, please, run:
./backends/p4test/p4test -I "p4include" --target bmv2 --std p4-16 --loopsUnroll --arch v1model ../testdata/p4_16_samples/stack_complex-bmv2.p4

@fruffy
Copy link
Collaborator

fruffy commented Aug 25, 2022

What happens when you try this on #3142?

@VolodymyrPeschanenkoIntel
Copy link
Contributor Author

What happens when you try this on #3142?

parserUnroll still have a bugs for: spec-ex19.p4, gauntlet_parser_test_4.p4, issue2090.p4. I need to fix them.

@mihaibudiu mihaibudiu merged commit 2fa87f5 into p4lang:main Aug 29, 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.

3 participants