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

Incorrect elimination of bit slices #105

Closed
mihaibudiu opened this issue Oct 14, 2016 · 0 comments
Closed

Incorrect elimination of bit slices #105

mihaibudiu opened this issue Oct 14, 2016 · 0 comments

Comments

@mihaibudiu
Copy link
Contributor

@ChrisDodd
The pass LowerExpressions from the p4c-bm2-ss compiler incorrectly transforms:
(packet.lookahead<bit<24>>())[0:0]
to
(bit<1>)((packet.lookahead<bit<24>>()) >> 0)
Repro in p4_14_samples/parser_dc_full.p4

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

No branches or pull requests

1 participant