-
Notifications
You must be signed in to change notification settings - Fork 671
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
Applying style guidelines and spelling to M #1835
Conversation
This PR contains changes for the style guidelines that were discussed in the doc-sig. Style guidelines say that extension names an registers should be in back tics. This also fixes the old spelling of "implementors". Signed-off-by: Kersten Richter <[email protected]>
Signed-off-by: Kersten Richter <[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.
`MULH[[S]U] rdh, rs1, rs2; MUL rdl, rs1, rs2`
Because this is meant to represent a statement in assembly language, the entire thing should be in a single set of backticks. The rationale is that the commas and the semicolon are part of the assembly-language syntax; they aren't being used to delimit a list in English.
Putting the individual register specifiers in their own backticks is the right thing to do when they are being referenced individually, as in the phrase "the register specifiers rs1
, rs2
, and rs3
".
LGTM otherwise.
Signed-off-by: Kersten Richter <[email protected]>
Signed-off-by: Kersten Richter <[email protected]>
Signed-off-by: Kersten Richter <[email protected]>
Signed-off-by: Kersten Richter <[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.
Thank you, @kersten1!
This PR contains changes for the style guidelines that were discussed in the doc-sig. Style guidelines say that extension names and registers, among others should be in back ticks.
This also fixes the old spelling of "implementors".
One thing to discuss is the code sequences. Because they are code sequences, I put the pieces into back ticks to indicate code, as you can see if the following section:
MULH[[S]U]
rdh
,rs1
,rs2
;MUL rdl
,rs1
,rs2
(source register specifiers must be in same order andrdh
cannot be the same asrs1
orrs2
).but I can be convinced otherwise.