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

Fixing bug in HSIndexSimplifier path #3382

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update test
  • Loading branch information
VolodymyrPeschanenkoIntel committed Jun 6, 2022
commit 6790a692ea78af5a30cef06f6a4c9e5643c55ac8
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ parser p(packet_in pkt, out headers hdr, inout Meta m, inout standard_metadata_t

control ingress(inout headers h, inout Meta m, inout standard_metadata_t sm) {
bit<32> hsiVar;
bit<32> hsiVar_0;
bit<32> hsVar;
@noWarn("unused") @name(".NoAction") action NoAction_1() {
}
Expand All @@ -66,7 +65,7 @@ control ingress(inout headers h, inout Meta m, inout standard_metadata_t sm) {
key_0 = hsVar;
}
@hidden action controlhsindextest6l48_2() {
hsiVar_0 = h.i.index;
hsiVar = h.i.index;
}
@hidden table tbl_controlhsindextest6l48 {
actions = {
Expand Down Expand Up @@ -94,11 +93,11 @@ control ingress(inout headers h, inout Meta m, inout standard_metadata_t sm) {
}
apply {
tbl_controlhsindextest6l48.apply();
if (hsiVar_0 == 32w0) {
if (hsiVar == 32w0) {
tbl_controlhsindextest6l48_0.apply();
} else if (hsiVar_0 == 32w1) {
} else if (hsiVar == 32w1) {
tbl_controlhsindextest6l48_1.apply();
} else if (hsiVar_0 >= 32w1) {
} else if (hsiVar >= 32w1) {
tbl_controlhsindextest6l48_2.apply();
}
t_0.apply();
Expand Down