Repository navigation
assert_instr: add support for stricter tests - #2212
Conversation
|
I am also confused by |
53f3cf0 to
7e05b7e
Compare
This comment has been minimized.
This comment has been minimized.
e55b6c8 to
373a0de
Compare
|
Ah... it's 5 instructions somewhere. That's annoying. Maybe it should ignore some of these as they have nothing to do with the actual intrinsic? |
993c8d9 to
38a6da0
Compare
38b8f4f to
814e706
Compare
|
|
|
Yeah at some point I realized that this is about which instructions are enabled statically, but it'll still actually generate code for all intrinsics and even run |
814e706 to
20e59d7
Compare
This comment has been minimized.
This comment has been minimized.
e0c49be to
20d179b
Compare
20d179b to
231ec2f
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Looks like CI is also green here now. :) |
|
While we're doing this, can we also allow for testing multiple instructions as OR - will probably be useful in those weird cases when linux and windows differ etc |
|
That's definitely possible but doesn't have to happen all at once. I don't plan to add further features to this PR, but I'm of course happy to update the existing code based on review feedback. |
|
sure, this lgtm. we can add more extensions later if needed |
Motivated by #2208, this extends
assert_instrwith support for stricter tests:not(instr); the macro will then ensure that the given instruction does not appear in the disassembly.limit(n); the macro will ensure that overall there are no more thanninstructions in the disassembly.I verified that the problematic pack tests indeed fail before the revert of #2033.
limitseems most valuable among the two since in the past apparently the global limit was raised each time some instruction just had too much boilerplate around it, so now we allow way too much slack for most instructions. Withlimitwe could have a lower global limit and then just selectively increase the limit for the intrinsics that need it.r? @folkertdev