-
Notifications
You must be signed in to change notification settings - Fork 877
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
Add unratified Zcmop extension #1468
Conversation
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, but we'll wait until #1467 is merged.
@aswaterman Updated with new mnemonic |
Code looks fine; can you clean up the PR so it passes regression tests? |
@aswaterman Do you have a suggestion on how to fix this overlap test?
|
Updated the overlap list and the test passes locally. Hopefully the regressions should succeed now. |
Turns out that the overlap error is actually entirely legitimate: the Zcmop instructions will never be executed as written because they decode to C.LUI. In particular:
After my fix:
So, I'll approve the PR and manually merge my altered version. Note, @ved-rivos, Zimop shouldn't have this hiccup, since it doesn't overlap an existing encoding. |
@aswaterman - I am missing the change - the only commit I see is a new line in riscv/decode.h. |
Whoops. Editing error. |
@ved-rivos see #1486 |
@aswaterman got it ! |
Specification: https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc
Sail ref: riscv/sail-riscv#309
Arch tests: riscv-non-isa/riscv-arch-test#388