Integrated: 8297953: Fix several C2 IR matching tests for RISC-V

Feilong Jiang fjiang at openjdk.org
Fri Dec 2 12:52:04 UTC 2022


On Thu, 1 Dec 2022 13:50:23 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:

> Fix several IR matching tests that failed on RISC-V.
> 
> Rotate Node will be matched only when UseZbb is enabled:
> - test/hotspot/jtreg/compiler/c2/irTests/RotateLeftNodeIntIdealizationTests.java
> - test/hotspot/jtreg/compiler/c2/irTests/RotateLeftNodeLongIdealizationTests.java
> 
> RISC-V does not provide float branch instruction, so we do not match CMOVEI for two floating-point comparisons:
> - test/hotspot/jtreg/compiler/c2/irTests/TestFPComparison.java
> 
> Testing:
> - test/hotspot/jtreg/compiler/c2/irTests/TestFPComparison.java -- no tests selected as expected.
> 
> - With `-XX:+UseZbb`:
>   - test/hotspot/jtreg/compiler/c2/irTests/RotateLeftNodeIntIdealizationTests.java -- passed
>   - test/hotspot/jtreg/compiler/c2/irTests/RotateLeftNodeLongIdealizationTests.java -- passed
> 
> - With `-XX:-UseZbb`:
>   - test/hotspot/jtreg/compiler/c2/irTests/RotateLeftNodeIntIdealizationTests.java -- no tests selected as expected
>   - test/hotspot/jtreg/compiler/c2/irTests/RotateLeftNodeLongIdealizationTests.java -- no tests selected as expected

This pull request has now been integrated.

Changeset: 227364d5
Author:    Feilong Jiang <fjiang at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/227364d5927f94764fdb84f7d0b4c88c8dc25d89
Stats:     4 lines in 4 files changed: 2 ins; 0 del; 2 mod

8297953: Fix several C2 IR matching tests for RISC-V

Reviewed-by: fyang, chagedorn

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

PR: https://git.openjdk.org/jdk/pull/11453


More information about the hotspot-compiler-dev mailing list