-
Notifications
You must be signed in to change notification settings - Fork 90
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
Polishing to the specification #271
Conversation
- Fix grammar and programming notes - Adjust snippet for examples of overlodading exceptions - Adjust wordings in multiple spot - Unify ASCIIDoc link in the specification - Add note that operand mnemonics `vi` variants don't exist on purpose Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @eopXD for all your improvements to the intrinsics documentation.
I haven't read through it all, I'm just responding to your change regarding vstart
, since this came up in a separate conversation (about why the intrinsics API allows for undisturbed elements in vslideup
but not vslidedown
).
Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
d693dc0
to
2fd3103
Compare
Signed-off-by: eop Chen <[email protected]>
…s pseudo intrinsics Signed-off-by: eop Chen <[email protected]>
Do I understand correctly that the intent of a If that's the case, then the current LLVM and GCC implementations are non-conforming, as they do map directly to For example, on a VLEN=128 implementation (i.e. |
Added autowidth, header options to tables. Centered tables.
Ah, yes. You have found the hidden piece of the intrinsic implementation. However if you see this snippet https://godbolt.org/z/Wx4TPq7fs, the compiler is not respecting the element width and length multiplier provided by |
Changed pdf-style attribute to pdf-theme as pdf-style was deprecated.
f1baa3b
to
52d66cf
Compare
The compiler is still required respect the VLMAX implied by the SEW and LMUL. This means the compiler must respect the ratio between SEW and LMUL given to the intrinsic. The intrinsic must return the value the hardware vsetvli intruction would return for that VLMAX which is not always min(avl, VLMAX). |
Right, I am not saying that What I am saying is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions related to the vl
issues.
07c6a2c
to
ad5d96f
Compare
@nick-knight @dzaima @topperc Just made an update to description associated with "control of |
- Update description regarding control of number of elements to be processed based on discussion threads and edit suggestions of Nick. - Update descriptions of pseudo intrinsics vsetvl and vsetvlmax - Update sub-topics to control of vector programming model to more understanding phrases instead of the mnemonics of those CSRs. - Use `argument` universally when describing intrinsics argments instead of `operand` or `parameter`. - Use `intrinsics` universally instead of `RVV C intrinsics` or `intrinsics API`. - Refind wordings more. - Fix grammatical errors across the whole specification based on suggestions by ChatGPT. Signed-off-by: eop Chen <[email protected]>
ad5d96f
to
c5954a5
Compare
Also, minor grammitical error fixes are included. Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
Ping. |
This will prevent the Appendices from appearing in the TOC as Chapters but rather as Appendix A, Appendix B, etc. Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
…togen-compatible-header)
Load / store intrinsics follow the name under https://github.com/riscv/riscv-v-spec/blob/master/vmem-format.adoc Other intrinsics follow the name under https://github.com/riscv/riscv-v-spec/blob/master/valu-format.adoc and how they are defined under the vector specification. Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
Ping for more review comments, if not, the pull request will be merged one week later since we have converged to what this pull request is proposing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @eopXD polishing the document.
I left some comments, none of them too critical.
- Rephrase to be general - Adjust description for compiler optimization emitting .vi mnemonic instructions Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I think there is room for further wordsmithing, I think the technical content of the documentation is sufficient to present this to the Software HC.
Merging this PR now. Thanks all people that helped to work this through! |
No description provided.