-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8346478: RISC-V: Refactor add/sub assembler routines #22804
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
Conversation
|
👋 Welcome back fyang! A progress list of the required criteria for merging this PR into |
|
@RealFYang This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 5 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
@RealFYang The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
c5317c0 to
22d2397
Compare
Webrevs
|
|
/label remove shenandoah |
|
@RealFYang |
|
Hey, As we have instructions and and andi but in asm they are called andr and andi, I suggest we apply this to add/sub also? |
Hi, that's exactly what I am thinking :-) I guess this might help with other naming issues as well. BTW: We cannot use names like |
|
Let's take and Similar for rotate-right: and Let me know what you think. Thanks. |
|
Yea, I think what you are suggesting seems good. |
Thanks. I added one commit only handling naming of the rotate routines. I would keep this kind of change minimum unless we have similar issues like this. Also names like |
zifeihan
left a comment
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.
Looks good to me.
feilongjiang
left a comment
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.
Looks good! I have some minor comments.
|
@feilongjiang @zifeihan : Thanks for the review! |
robehn
left a comment
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.
Hey, sorry, I didn't understand/forgot over the holidays that you were waiting for me.
Yes, thanks!
|
Thanks all for the review! |
|
Going to push as commit 8c87ea2.
Your commit was automatically rebased without conflicts. |
|
@RealFYang Pushed as commit 8c87ea2. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi, please consider this cleanup change.
Currently, we have mixed use of
addiandadd(int64_t)/sub(int64_t). The former adds a 12-bit immediate while the latterdoes not have a constraint on the immediate range. We should use
addiwhen possible, which would help save one runtime check about the immediate range and avoid the use of one tmp register by the latter as well.In order to make the code more readable, this also introduces helper routines
subi/subiwand adapts callsites ofaddi/addiwwith negative immediates.Testing on Premier-P550 SBC running Ubuntu-24.04:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22804/head:pull/22804$ git checkout pull/22804Update a local copy of the PR:
$ git checkout pull/22804$ git pull https://git.openjdk.org/jdk.git pull/22804/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22804View PR using the GUI difftool:
$ git pr show -t 22804Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22804.diff
Using Webrev
Link to Webrev Comment