-
Notifications
You must be signed in to change notification settings - Fork 445
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
compiler bug? global action #99
Comments
I have created a new test case for this example. The problem is not the global action, but the copy-in copy-out of the fat structure. It looks like we generate incorrect code for assignment between structures. Ideally the compiler should figure out that it does not need to do structure copying at all, but we have some work to do to achieve that. Here is the generated code:
The bmv2 back-end is not very robust yet. |
I have submitted a fix which makes this compile. I have not checked that it runs correctly. It's still inefficient. |
I can confirm that this compiles now. |
I have a program that compiles fine with the
p4c-bm2-ss
backend, but crashes at run-time with thesmall_switch
bmv2. I compile withand run with
Compilation succeeds without complaints, but when I invoke
simple_switch
it crashes with the following error:Here is a minimized version of the program:
The problem seems to be caused by the global
drop
action. It disappears when I define a (parameter-free) version of drop inside theIngressI
scope instead.The text was updated successfully, but these errors were encountered: