Skip to content

Commit

Permalink
Update reference outputs to match fixes in constant folding
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Jan 10, 2024
1 parent 76af275 commit cdba743
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions testdata/p4_16_samples_outputs/issue2444-first.p4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const int a = 1;
const bool b = true;
const int z = (int)2w1;
const bool w = (bool)(int)2w1;
const int z = 1;
const bool w = true;
const int z1 = 1;
const bool w1 = true;
const int z2 = 3;
Expand Down
4 changes: 2 additions & 2 deletions testdata/p4_16_samples_outputs/issue3219-first.p4
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
bit<4> func1() {
bit<4> t = (bit<4>)(int)1;
bit<4> t = 4w1;
return t;
}
bit<4> func2() {
bit<4> t = (bit<4>)(int)4w1;
bit<4> t = 4w1;
return t;
}
control c(out bit<4> result) {
Expand Down
2 changes: 1 addition & 1 deletion testdata/p4_16_samples_outputs/issue3219-frontend.p4
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ control c(out bit<4> result) {
@name("c.retval") bit<4> retval;
@name("c.t") bit<4> t_0;
apply {
t_0 = (bit<4>)(int)1;
t_0 = 4w1;
retval = t_0;
result = retval;
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/p4_16_samples_outputs/issue3219-midend.p4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
control c(out bit<4> result) {
@hidden action issue3219l13() {
result = (bit<4>)(int)1;
result = 4w1;
}
@hidden table tbl_issue3219l13 {
actions = {
Expand Down

0 comments on commit cdba743

Please sign in to comment.