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

Ratified extensions dependent on unratified extensions (bit manipulation) #338

Open
jordancarlin opened this issue Feb 15, 2025 · 0 comments

Comments

@jordancarlin
Copy link

Currently there are several ratified bit manipulation instructions that are defined in this repo as pseudo ops for unratified extensions. For example, rv32_zbkb contains

$pseudo_op rv64_zbp::shfli    zip rd rs1 31..25=4 24..20=15 14..12=1 6..2=4 1..0=3
$pseudo_op rv64_zbp::unshfli  unzip rd rs1 31..25=4 24..20=15 14..12=5 6..2=4 1..0=3
$pseudo_op rv64_zbb::rori     rori.rv32 rd rs1   31..25=0x30 shamtw 14..12=5 6..2=0x04 1..0=3
$pseudo_op rv64_zbp::grevi    rev8.rv32 rd rs1   31..20=0x698 14..12=5 6..0=0x13

When generating only the ratified extensions, this can cause issues. It is also not very clear from a documentation perspective. As far as I know, there are no plans to ratify zbp, so these instructions should transition to being their own instructions that don't depend on zbp.

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

No branches or pull requests

1 participant