RFR: 8297953: Fix several C2 IR matching tests for RISC-V
Christian Hagedorn
chagedorn at openjdk.org
Thu Dec 1 14:53:21 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
Looks good!
-------------
Marked as reviewed by chagedorn (Reviewer).
PR: https://git.openjdk.org/jdk/pull/11453
More information about the hotspot-compiler-dev
mailing list