-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[FuzzMutate] Prevent the mutator from generating illegal memory operations #144885
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
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
3b1298e to
67ca2bf
Compare
|
Can you attach an AMDGCN specific test case? IIUC the |
|
@DataCorrupted thanks for the review. I'll provide the unit test. |
e9b0f59 to
39f8169
Compare
|
@DataCorrupted thanks again for the feedback. I've added a unit test. We are also planning to incorporate this check into the Verifier in an independent PR. Once that is done, I can also remove the adhoc check for addrspace 8 in a new PR. |
39f8169 to
ccee029
Compare
|
The last failure looks unrelated to this PR. I have just rebased to try again. |
ccee029 to
c5b2a5b
Compare
DataCorrupted
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.
Thanks for the test, only some small changes required.
DataCorrupted
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.
Approved with nit
41550a7 to
0daba8d
Compare
|
Thanks @DataCorrupted, I missed those cases. |
|
@DataCorrupted thanks again for your review and feedback. I've addressed the remaining comments. In case the latest changes look good to you, I think the PR could be merged. |
This PR prevents the mutator from generating illegal memory operations for AMDGCN. In particular, direct store and load instructions on addrspace(8) are not permitted. This PR fixes that by properly introducing casts to addrspace(7) when required.