-
Notifications
You must be signed in to change notification settings - Fork 305
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
Missing B Extensions in encoding.h
#289
Comments
The B extension is just Zba + Zbb + Zbs, so is it really missing? The contents of Although it would be desirable to include pseudoinstructions in |
I just wanted to point out that this is not true, if you check per example "sh1add", that is present even without pseudo-ops. Additionally, if you do the default make, you will have all instructions(even the pseudo-ops).
The reason parse.py ignores the pseudo-ops when you don't run the automated make is that only including "go" is setting them on(see https://github.com/riscv/riscv-opcodes/blob/85da0d6a2e5b349f19e57b122abab74073aa44c6/parse.py#L1059C1-L1061C1). |
@aswaterman just thinking, if it would be beneficial and adds any value to the existing contents of
It would be nicer as in several assembly-level optimizations and macros, pseudo-ops simplify the process of writing instructions.
@AFOliveira , yes, I do see this, that only for "go", the pseudo instructions are being set as true: |
@aswaterman As I was going through the
encoding.h
file, I observed that B-extensions are not present. It may be probably because the files with prefixesrv32_zb*
(e.g.,rv32_zbb
,rv32_zbs
) are havingpseudo_op
and it is being excluded.In the parsing logic, the flow of
parse.py
too ignorespseudo_op
.Is these extensions need not be included in
encoding.h
?The text was updated successfully, but these errors were encountered: