-
Notifications
You must be signed in to change notification settings - Fork 432
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
Compilation test support for P4Smith #4791
base: main
Are you sure you want to change the base?
Conversation
b3cf81e
to
d34f60e
Compare
d841ca5
to
21561a7
Compare
3b29458
to
1423109
Compare
257c5aa
to
889db85
Compare
0d4fbea
to
f778c51
Compare
ed870d1
to
dae791c
Compare
Signed-off-by: zzmic <100326374 [email protected]>
…programs with different seeds (to inspect the behavior of the generation and compilation process in a finer/smaller granularity) Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
…ion-test.sh back to the commit d34f60e, and switch the order of core and generic in backends/p4tools/modules/smith/targets/generic/test/P4Tests.cmake Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
…n generating the parameter list for the BMv2 portion of the fuzzer Signed-off-by: zzmic <100326374 [email protected]>
…eName Signed-off-by: zzmic <100326374 [email protected]>
avoid dumping too many generated files after the debugging process Signed-off-by: zzmic <100326374 [email protected]>
…core, preliminarily override the virtual method in the BMv2 backend (still hasn't worked yet) 2. Get rid of and expand the function signature of Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
…sts.cmake file instead of the bash script Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
…r the dpdk taget Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
…l::CompilerBug'` Signed-off-by: zzmic <100326374 [email protected]>
Make further attempts to resolve type resolving Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
…t and return statements Signed-off-by: zzmic <100326374 [email protected]>
dae791c
to
e7a47c0
Compare
@@ -20,7 20,7 @@ struct Requirements { | |||
bool no_methodcalls{false}; | |||
bool not_zero{false}; | |||
bool not_negative{false}; | |||
bool byte_align_headers{false}; | |||
bool byte_align_headers{true}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be target-specific.
Use P4Scope::req.byte_align_headers = false;
@@ -188,6 188,10 @@ IR::Statement *StatementGenerator::genAssignmentStatement() { | |||
removeLval(left, bitType); | |||
} | |||
right = target().expressionGenerator().genExpression(bitType); | |||
if (left->toString().find("said")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
|
||
# List of known bugs. | ||
KNOWN_BUGS=( | ||
"h.eth_hdr.src_addr \* 36646024123162; not implemented" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These error patterns are now too specific. Try to catch the most specific, generic error message. For example. "Div or Mux not implemented"
…` back to `IR::ListExpression`
1075a03
to
d8d0fde
Compare
…`IR::Type_Declaration`
…` back to `IR::ListExpression`
Signed-off-by: zzmic <100326374 [email protected]>
…b.com> I, zzmic <100326374 [email protected]>, hereby add my Signed-off-by to this commit: d8d0fde I, zzmic <100326374 [email protected]>, hereby add my Signed-off-by to this commit: 3e3b306 I, zzmic <100326374 [email protected]>, hereby add my Signed-off-by to this commit: 0df77ab Signed-off-by: zzmic <100326374 [email protected]>
…ments than the default `genBitType` Signed-off-by: zzmic <100326374 [email protected]>
Signed-off-by: zzmic <100326374 [email protected]>
This is a draft PR that aims to re-enable
$COMPILER_BIN $TEST_DIR/out.p4
and test whether there is any generation or compilation error occurred while executing backends/p4tools/modules/smith/scripts/compilation-test.sh.