RFR: 8368206: RISC-V: compiler/vectorapi/VectorMaskCompareNotTest.java fails when running without RVV

Hamlin Li mli at openjdk.org
Mon Sep 22 12:28:51 UTC 2025


On Mon, 22 Sep 2025 03:16:29 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:

> Hi,
> Can you help to review this patch? Thanks!
> 
> We noticed that compiler/vectorapi/VectorMaskCompareNotTest.java fails when running on sg2042.
> On RISC-V without RVV, ofLargestShape(long.class) falls back to 64 bits (see getMaxVectorBitSize in VectorShape.java),
> leading to VectorShape.forBitSize(32) which is unsupported and throws IllegalArgumentException.
> 
> ### Test (fastdebug)
> - [x] Run compiler/vectorapi/VectorMaskCompareNotTest.java on sg2042

Hey, I'm wondering if all the tests under hotspot/jtreg/compiler/vectorapi should `@require` rvv?
Otherwise seems they are not really testing anything useful?

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

PR Comment: https://git.openjdk.org/jdk/pull/27414#issuecomment-3318704172


More information about the hotspot-compiler-dev mailing list