[riscv-port] Integrated: 8279487: riscv: Fix bad AD file when UseRVB is disabled

Feilong Jiang fjiang at openjdk.java.net
Wed Jan 5 06:39:34 UTC 2022


On Wed, 5 Jan 2022 03:12:16 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:

> After JDK-8279344, test/hotspot/jtreg/compiler/intrinsics/TestRotate.java will report bad AD file error in fastdebug when UseRVB is disabled.
> Some match rules for `RotateRight` and `RotateLeft` are added by  [JDK-8279344](https://bugs.openjdk.java.net/browse/JDK-8279344) , which is under predicate of UseRVB. But `match_rule_supported(Op_RotateRight/Op_RotateLeft)` still returns true even when UseRVB is disabled. This will cause the bad AD file error on fastdebug JDK. 
> This PR fixes this issue by setting `match_rule_supported(Op_RotateRight)` and `match_rule_supported(Op_RotateLeft)` to false when UseRVB is disabled.
> 
> test/hotspot/jtreg/compiler/intrinsics/TestRotate.java passed with/without UseRVB on fastdebug JDK.

This pull request has now been integrated.

Changeset: 65cf0efe
Author:    Feilong Jiang <fjiang at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.java.net/riscv-port/commit/65cf0efe4317a73fdd6a00af432b48972e77cf17
Stats:     3 lines in 1 file changed: 3 ins; 0 del; 0 mod

8279487: riscv: Fix bad AD file when UseRVB is disabled

Reviewed-by: fyang

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

PR: https://git.openjdk.java.net/riscv-port/pull/41


More information about the riscv-port-dev mailing list