-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RISCV: Add call, int and branch_relative instruction groups #2007
Conversation
Add call, ret, int and branch_relative instruction groups to riscv mappings.
Are those groups all present in LLVM as well? Of cause we could implement something to add additional groups, but his needs a different approach. |
I have no clue. The only other one is |
I rushed my comment. Ignore it. RISCV will likely not be update in the next two months so it another implementation is not necessary until then.
This would be one way. But this will take probably very long until it is merged (if it is accepted). The way to implemented it in Capstone is to add a function to the |
@peace-maker if you add tests for these cases, you will guarantee that whoever updates RISC-V with |
@peace-maker You can add test cases for these like this: https://github.com/capstone-engine/capstone/blob/79e78cffba6b400fa0545bf78b42b08d9f29b695/tests/cs_details/issue.cs Note that the file needs to have |
Check for 32 and 64 bit mode as well as compressed instructions.
@Rot127 I couldn't find the file you've linked to in the next branch of this repository, so I've added regression tests to the suite/cstest/issues.cs file instead. Thank you both for your help! |
Thanks again. Merged. |
Add call, int and branch_relative instruction groups to riscv mappings.
I'm not sure if there are tests to be added somewhere as I'm not familiar with the codebase.