Skip to content
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 .rv32 on rv32_zbs and rv32_zbb instructions #220

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

hirooih
Copy link
Contributor

@hirooih hirooih commented Jan 8, 2024

shamt[5] must be 0 for RV32.
slli.rv32, etc., are defined for slli, srli, and srai to address this issue.
bclri, bexti, binvi, bseti, and rori have same issue. This PR adds .rv32 for them.

Similarly zext.h and rev8 have different encoding for RV32 and RV64. Only RV64 versions are emitted in output files. This PR also adds .rv32 for them to solve this.


Note: rev8 and rori are aliased in rv32_{zk,zkn,zks}. But only rv32_zks is shown in the extension field in instr_dict.yaml. I think this is an issue of parse.py.

to be consistent with slli, srli, and srai.

Signed-off-by: Hiroo HAYASHI <[email protected]>
- zext.h.rv32, rev8.rv32, and rori.rev32

-  rev8.rv32, and rori.rev32 are also aliased in rv32_{zk,zkn,zks,zbkb}
  - only rv32_zks is shown in the extension field

Signed-off-by: Hiroo HAYASHI <[email protected]>
@aswaterman aswaterman merged commit eb90130 into riscv:master Jan 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants