-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
[RISC-V] Inconsistent implied/required extension behavior for zabha/zvk* #102249
Comments
@llvm/issue-subscribers-backend-risc-v Author: Patrick O'Neill (patrick-rivos)
Zabha/Zvk currently requires the user to specify Zaamo/{V|Zve}.
Godbolt: This behavior doesn't seem to match the RISC-V spec: "requires" is equivalent to "depends upon": riscvarchive/riscv-v-spec#723 (comment) This behavior isn't consistent within LLVM: |
I think the I'm not sure there's a PR open to fix |
Zvk was already fixed a week or two ago. |
Zabha was fixed by: #115694 |
Zabha/Zvk currently requires the user to specify Zaamo/{V|Zve}.
Godbolt:
zabha: https://godbolt.org/z/bYrY8fzcv
zvk: https://godbolt.org/z/fqheWoM7d
This behavior doesn't seem to match the RISC-V spec:
Zabha spec: https://github.com/riscv/riscv-isa-manual/blob/d2999932625d2cab25bb2081f7da915411e65ad3/src/zabha.adoc?plain=1#L28-L29
Zvk* spec: https://github.com/riscv/riscv-isa-manual/blob/d2999932625d2cab25bb2081f7da915411e65ad3/src/vector-crypto.adoc?plain=1#L471-L473
"requires" is equivalent to "depends upon": riscvarchive/riscv-v-spec#723 (comment)
"depends upon" seems to be specified behavior: https://github.com/riscv/riscv-isa-manual/blob/399c9a759eb4540a65c60e2cc236164821ff2346/src/naming.tex#L46
This behavior isn't consistent within LLVM:
zcb "depends upon" zca and is implicitly added by llvm: https://godbolt.org/z/aoYGbaWvz
The text was updated successfully, but these errors were encountered: