-
Notifications
You must be signed in to change notification settings - Fork 836
Add initial script to generate relaxed atomics spec test #8220
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
Conversation
2200bdf to
0c37e1b
Compare
|
I had a mistake with the section's length calculation, which was only coincidentally correct when 2 instructions were being tested. I fixed it now and tested it locally with more ops. |
|
I more or less started over and fixed the handling for i32 vs i64 (the earlier iteration wouldn't making the memory index match the memory that we're accessing e.g. (i64.const ...) when accessing the 64-bit memory). I'll add the text tests first and then do the binary tests in the next PR. In the meantime, I'll keep the existing relaxed-atomics.wast test. This script populates relaxed-atomics2.wast. |
rmahdav
left a comment
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.
LGTM, thanks Steven.
Part of #8165. test/spec/relaxed-atomics2.wast was generated by the script. Binary tests will be added in the next PR.
Will add missing instructions e.g. load8, i64 instructions, etc once the approach looks good.
The ruff warning for E741 probably isn't triggering anymore, but I chose to disable it because it disallows variables named
lbecause it could be confused withIwhich I think isn't relevant in text editors.