-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
8320069: RISC-V: Add Zcb instructions #17122
Conversation
👋 Welcome back rehn! A progress list of the required criteria for merging this PR into |
Webrevs
|
We already have "macroses" for load and stores in macroAssembler_riscv.hpp, what's the reason to do compression decision in assembler_riscv.hpp instead ( not saying it's wrong) ?
|
No, you are correct I also think this is not optimal. I don't know the background, but it seems like this is the easiest way to add compressed transparently. But to fully utilize C instruction we should favor the x8->x15, we often don't get C due to e.g. BCP is in x22. I think to be able to better utilize C we can't have it so transparent. So here I just try to follow the current code, see how lw is changed to c_lw. |
Not exactly related to this PR, but I also saw a strange behaviour from MacroAssembler's lwu. an example
Using Assembler::lwu directly resulted in a correctly generated lwu |
Yes, I have seen similar things.
As "111001000" would fit in the signed 12imm to jalr I think this is sub-optimal. I can go over and fix them, I'll create jira. |
Interesting. This does not seem to reflect on the code of |
If you take this PR https://github.com/openjdk/jdk/pull/17046/files#diff-7a5c3ed05b6f3f06ed1c59f5fc2a14ec566a6a5bd1d09606115767daa99115bdR3717 and change explicit Assembler::lwu() to lwu() then you are likely to see this issue |
Hi, I have tried to use MacroAssembler::lwu instead, and I see no difference in stub code emitted. |
Passes t1+t2 fastdebug (with some expected timeouts). |
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.
Seems fine. I only have some minor comments.
Thank you! |
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.
Updated change looks good. Thanks.
@robehn 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 15 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Thank you @VladimirKempik @RealFYang |
/integrate |
Going to push as commit 30f93a2.
Your commit was automatically rebased without conflicts. |
Hi, this is the instructions for zcb.
Due to over lack of infrastructure having multiple extension dependent instruction does not fit well.
Some of these compressed instructions are also missing 1 to 1 mapping, e.g. now we have a compressed not, but the corresponding instruction in uncompressed is still xor.
I think we need to do some rework here.
I also I don't like the macro expansion as it hopeless in debugger and 'IDE's (vim+rtags for me).
(macro stuff was originally done when templates where blacklisted in hotspot)
And I don't want an option for this, as zcb is coming in hwprobe, if you have compressed on you get them if they are supported (may depend on e.g. zbb).
I have done some modification since it passed tier1, so I'm running stuff over the weekend.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17122/head:pull/17122
$ git checkout pull/17122
Update a local copy of the PR:
$ git checkout pull/17122
$ git pull https://git.openjdk.org/jdk.git pull/17122/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17122
View PR using the GUI difftool:
$ git pr show -t 17122
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17122.diff
Webrev
Link to Webrev Comment