RFR: 8333652: RISC-V: compiler/vectorapi/VectorGatherMaskFoldingTest.java fails when using RVV

Gui Cao gcao at openjdk.org
Thu Jun 6 02:51:50 UTC 2024


Hi, We are experiencing test failures in test/hotspot/jtreg/compiler/vectorapi/VectorGatherMaskFoldingTest.java on Banana Pi BPI-F3 board (has RVV1.0), see jbs issue for exception information.

related C2 instruct:
https://github.com/openjdk/jdk/blob/326dbb1b139dd1ec1b8605339b91697cdf49da9a/src/hotspot/cpu/riscv/riscv_v.ad#L4805-L4811

If we use vluxei32_v, then the sew here needs to be Assembler::e32, Similarly, here if it's Assembler::e64, then we need to use vluxei64_v.

### Testing
- [x] Run VectorGatherMaskFoldingTest.java on Banana Pi BPI-F3 board (has RVV1.0)
- [x] test/jdk/jdk/incubator/vector on Banana Pi BPI-F3 board (has RVV1.0)
- [x] Run VectorGatherMaskFoldingTest.java on SOPHON SG2042 (without RVV1.0)

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

Commit messages:
 - 8333652: RISC-V: compiler/vectorapi/VectorGatherMaskFoldingTest.java fails when using RVV

Changes: https://git.openjdk.org/jdk/pull/19564/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19564&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8333652
  Stats: 86 lines in 2 files changed: 70 ins; 2 del; 14 mod
  Patch: https://git.openjdk.org/jdk/pull/19564.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19564/head:pull/19564

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


More information about the hotspot-compiler-dev mailing list