RFR: 8297953: Fix several C2 IR matching tests for RISC-V
Feilong Jiang
fjiang at openjdk.org
Thu Dec 1 13:59:12 UTC 2022
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
-------------
Commit messages:
- fix some irtest failed on riscv
Changes: https://git.openjdk.org/jdk/pull/11453/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11453&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8297953
Stats: 4 lines in 4 files changed: 2 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/11453.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11453/head:pull/11453
PR: https://git.openjdk.org/jdk/pull/11453
More information about the hotspot-compiler-dev
mailing list