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

i#6712 record bounds: Add record filter sanity checks #6749

Merged
merged 6 commits into from
Apr 2, 2024

Conversation

derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Apr 2, 2024

Adds two sanity checks developed to identify what was at first believed to be a new bug but turned out to be #6712:

  • Ensure that last_encoding is empty on an input switch, to avoid recording the wrong encoding in pc2encoding.

  • Ensure the encoding size matches the instr size when inserting chunk-new encodings.

  • Augment the reader check for mismatching encoding vs instr sizes, and abort in release build too.

Although #6712 is fixed, these checks are still useful to prevent regressions. Plus, the reader_t check detects other bugs as well and we know at least one other is out there in #6303. Making the reader check abort in release build should help avoid wasted work as already happened here where we didn't notice the printed warnings in release build.

Tested by running record_filter on large proprietary inputs: no checks failed.

Issue: #6712

Adds two sanity checks developed to identify what was at first
believed to be a new bug but turned out to be #6712:

+ Ensure that last_encoding is empty on an input switch, to avoid
  recording the wrong encoding in pc2encoding.

+ Ensure the encoding size matches the instr size when inserting
  chunk-new encodings.

Tested by running record_filter on large proprietary inputs: no checks
failed.

Issue: #6712
@derekbruening
Copy link
Contributor Author

a64 sve failure is dr$sim.invariants missing exit: #6733

@derekbruening derekbruening merged commit 0838ea7 into master Apr 2, 2024
15 of 16 checks passed
@derekbruening derekbruening deleted the i6712-filter-enc-checks branch April 2, 2024 21:52
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

Successfully merging this pull request may close these issues.

2 participants