Integrated: 8365302: RISC-V: compiler/loopopts/superword/TestAlignVector.java fails when vlen=128
Dingli Zhang
dzhang at openjdk.org
Wed Aug 13 01:28:22 UTC 2025
On Tue, 12 Aug 2025 06:38:33 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:
> Hi all,
> Please take a look and review this PR, thanks!
>
> [JDK-8352529](https://bugs.openjdk.org/browse/JDK-8352529) enables this IR verification test for riscv. This test pass when vlen=256, but fail when vlen=128.
>
> The error occurs because the test13aIL and test13bIL cases require ensuring that vectors are larger than what unrolling produces; otherwise, the corresponding vector IR will not be generated.
>
> We can use `JTREG="JAVA_OPTIONS=-XX:+TraceSuperWordLoopUnrollAnalysis"` during testing.
> The tips in the log:
>
> 76844 1333 b 4 compiler.loopopts.superword.TestAlignVector::test13aIL (42 bytes)
> slp analysis fails: unroll limit greater than max vector
>
> slp analysis: set max unroll to 4
>
>
> Therefore, we need to limit MaxVectorSize to greater than or equal to 32 bytes.
>
> ### Test (fastdebug)
> - [x] Run compiler/loopopts/superword/TestAlignVector.java on qemu-system with RVV when vlen=128/256
This pull request has now been integrated.
Changeset: 636c61a3
Author: Dingli Zhang <dzhang at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/636c61a3868d9c01b672b3b45cda1e476acdc045
Stats: 18 lines in 1 file changed: 16 ins; 0 del; 2 mod
8365302: RISC-V: compiler/loopopts/superword/TestAlignVector.java fails when vlen=128
Reviewed-by: fyang, fjiang
-------------
PR: https://git.openjdk.org/jdk/pull/26738
More information about the hotspot-compiler-dev
mailing list