-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
8308817: RISC-V: Support VectorTest node for Vector API #14138
Conversation
👋 Welcome back gcao! A progress list of the required criteria for merging this PR into |
/contributor add Dingli Zhang dingli@iscas.ac.cn |
@zifeihan |
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
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.
@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 56 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 (@RealFYang) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@RealFYang @feilongjiang Thanks for the review. |
/sponsor |
Going to push as commit 457e1cb.
Your commit was automatically rebased without conflicts. |
@RealFYang @zifeihan Pushed as commit 457e1cb. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi,
we have added VectorTest node, 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:
Also here's a more concise test case, VectorTestDemo:
We can compile
VectorTestDemo.java
usingjavac --add-modules jdk.incubator.vector VectorTestDemo.java
, and use./java -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseRVV -XX:+PrintOptoAssembly -XX:+LogCompilation -XX:LogFile=compile.log VectorTestDemo > aaa.log
to start the test case, we can observe the specified compilation logcompile.log
, which contains the VectorTest node for the PR implementation.Some of the compilation logs of VectorTestDemo#anytrue method are as follows.
Some of the compilation logs of the VectorTestDemo#alltrue method are as follows.
Some of the compilation logs of VectorTest#main method are as follows.
As comment in the PR in cmovI_vtest_anytrue instruct, cmpOp is negated in CMoveINode::Ideal. So we keep this version for better understanding of the code change.
[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:
qemu with UseRVV:
Progress
Issue
Reviewers
Contributors
<dingli@iscas.ac.cn>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14138/head:pull/14138
$ git checkout pull/14138
Update a local copy of the PR:
$ git checkout pull/14138
$ git pull https://git.openjdk.org/jdk.git pull/14138/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14138
View PR using the GUI difftool:
$ git pr show -t 14138
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14138.diff
Webrev
Link to Webrev Comment