Integrated: 8315931: RISC-V: xxxMaxVectorTestsSmokeTest fails when using RVV
Gui Cao
gcao at openjdk.org
Fri Sep 15 07:45:48 UTC 2023
On Tue, 12 Sep 2023 11:06:45 GMT, Gui Cao <gcao at openjdk.org> wrote:
> Hi, This patch fixes an error when qemu enabled the parameter rvv_ta_all_1s=true. The cause for the error is that the number of set lanes here may be smaller than Matcher::vector_length(this), then this vector width is not set correctly. this in turn causes the width of the returned vector length to be less than the expected length. together with these two options for QEMU, this resulted in the use of unintended vector element values.
>
> https://github.com/openjdk/jdk/blob/94800781eae192d3e82f5635d4aad165f11eabc1/src/hotspot/cpu/riscv/riscv_v.ad#L3510
> ### Testing:
> qemu with UseRVV:
> - [x] test/jdk/jdk/incubator/vector (fastdebug)
>
> qemu with rvv_ma_all_1s=true,rvv_ta_all_1s=true and UseRVV:
> - [x] Tier1 tests (release)
> - [x] Tier2 tests (release)
> - [x] Tier3 tests (release)
> - [x] test/jdk/jdk/incubator/vector (fastdebug)
This pull request has now been integrated.
Changeset: 4070829a
Author: Gui Cao <gcao at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4070829ae589678578a93b2886e02e04cf0a1b01
Stats: 27 lines in 1 file changed: 8 ins; 8 del; 11 mod
8315931: RISC-V: xxxMaxVectorTestsSmokeTest fails when using RVV
Reviewed-by: fyang, dzhang
-------------
PR: https://git.openjdk.org/jdk/pull/15680
More information about the hotspot-compiler-dev
mailing list