RFR: 8363898: RISC-V: TestRangeCheckHoistingScaledIV.java fails after JDK-8355293 when running without RVV

Hamlin Li mli at openjdk.org
Wed Jul 23 07:33:53 UTC 2025


On Wed, 23 Jul 2025 03:32:26 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:

> Hi all,
> Please take a look and review this PR, thanks!
> 
> test/hotspot/jtreg/compiler/rangechecks/TestRangeCheckHoistingScaledIV.java fails without RVV after [JDK-8355293](https://bugs.openjdk.org/browse/JDK-8355293) in fastdebug mode.
> 
> In [JDK-8291669](https://bugs.openjdk.org/browse/JDK-8291669), which introduced this case, it is mentioned:
>>Previously attached jtreg case fails on ppc64 because VectorAPI has no
>>vector intrinsics on ppc64 so there's no long range check to hoist. In
>>this patch, we limit the test architecture to x64 and AArch64.
> 
> So we need RVV to use vector intrinsics on RISC-V.
> 
> ### Test (fastdebug)
> - [x] Run test/hotspot/jtreg/compiler/rangechecks/TestRangeCheckHoistingScaledIV.java on k1 and sg2042
> - [x] Run test/hotspot/jtreg/compiler/rangechecks/TestRangeCheckHoistingScaledIV.java on qemu-system w/ and w/o RVV

Thank you for fixing this! looks good.

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

Marked as reviewed by mli (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26437#pullrequestreview-3046043263


More information about the hotspot-compiler-dev mailing list