-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8331281: RISC-V: C2: Support vector-scalar and vector-immediate bitwise logic instructions #18999
Conversation
…se logic instructions
👋 Welcome back gcao! A progress list of the required criteria for merging this PR into |
@zifeihan 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 29 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@feilongjiang, @RealFYang) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
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.
Overall looks good, with one minor comment.
src/hotspot/cpu/riscv/riscv_v.ad
Outdated
|
||
// vector-scalar and (unpredicated) | ||
|
||
instruct vand_regI(vReg dst_src, iRegI src) %{ |
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.
Do we need iRegIorL2I
for RegI
related instructions?
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 for your review. fixed.
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, thanks!
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.
LGTM.
@feilongjiang @RealFYang : Thanks for the review. |
/sponsor |
Going to push as commit e611151.
Your commit was automatically rebased without conflicts. |
Hi, We want to support vector-scalar and vector-immediate bitwise logic instructions, It was implemented by referring to RVV v1.0 [1]. please take a look and have some reviews. Thanks a lot.
We can use the Int256VectorTests.java[2] to print the compilation log, verify and observe the generation of nodes.
For example, we can use the following command to print the compilation log of a jtreg test case:
we can observe the specified compilation log
Int256VectorTests_PrintOptoAssembly.log
, which contains the vector-scalar and vector-immediate bitwise logic node for the PR implementation.vand_immI Node
vor_regI Node
vxor_regI Node
vand_regI_masked Node
vor_regI_masked Node
vxor_regI_masked Node
vnotI Node
vnotI_masked Node
We can test test/jdk/jdk/incubator/vector/Long256VectorTests.java in the same way, and looking at the Opto logs, we will see nodes similar to vand_regL、vor_regL、vxor_regL、vnotL.
vand_regL Node
vor_regL Node
vxor_regL Node
vand_regL_masked Node
vor_regL_masked Node
vxor_regL_masked Node
vnotL Node
[1] https://github.com/riscv/riscv-v-spec/blob/v1.0/v-spec.adoc
[2] https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/incubator/vector/Int256VectorTests.java
Testing
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18999/head:pull/18999
$ git checkout pull/18999
Update a local copy of the PR:
$ git checkout pull/18999
$ git pull https://git.openjdk.org/jdk.git pull/18999/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18999
View PR using the GUI difftool:
$ git pr show -t 18999
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18999.diff
Webrev
Link to Webrev Comment