Integrated: 8284937: riscv: should not allocate special register for temp

Yanhong Zhu yzhu at openjdk.java.net
Tue Apr 19 01:18:27 UTC 2022


On Mon, 18 Apr 2022 08:18:27 GMT, Yanhong Zhu <yzhu at openjdk.org> wrote:

> Following testcases fail with -XX:+UseRVV after [JDK-8284863](https://bugs.openjdk.java.net/browse/JDK-8284863):
> 
> test/hotspot/jtreg/compiler/vectorapi/VectorCastShape128Test.java
> test/hotspot/jtreg/compiler/vectorapi/VectorCastShape64Test.java
> test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastTest.java
> test/hotspot/jtreg/compiler/vectorapi/VectorMaskLoadStoreTest.java
> 
> The root cause of this problem is that special registers were allocated as temporary registers in C2. Similar issue also exists in several other C2 instructs for riscv.
> 
> With this patch, testcases above are all passed.
> 
> Additional testing:
> - QEMU full with RVV enabled
> - QEMU full with RVV disabled
> - Native hotspot/jdk tier1 with RVV disabled

This pull request has now been integrated.

Changeset: 145dfed0
Author:    Yanhong Zhu <yzhu at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/145dfed03c21ffe233203c1117d02b552bd17630
Stats:     32 lines in 2 files changed: 0 ins; 0 del; 32 mod

8284937: riscv: should not allocate special register for temp

Reviewed-by: fyang, fjiang, yadongwang

-------------

PR: https://git.openjdk.java.net/jdk/pull/8283


More information about the hotspot-compiler-dev mailing list