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

Feilong Jiang fjiang at openjdk.java.net
Wed Jan 5 06:32:42 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.

Thank you for the review, Felix. /integrate

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

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


More information about the riscv-port-dev mailing list