RFR: 8292395: [testbug] VectorGatherScatterTest.java fails on SVE with -XX:MaxVectorSize=8 after JDK-8288397
Hao Sun
haosun at openjdk.org
Tue Aug 16 07:46:58 UTC 2022
This test case was introduced in JDK-8288397 to check the misused
register issue for gather load/scatter store rules. `I_SPECIES` was set
intentionally as half of the length of `L_SPECIES` so as to trigger the
register issue.
However, if "-XX:MaxVectorSize=8" is specified from command line,
invalid vector size, i.e. 32-bit, is set for IntVector, leading to the
clinit failure, while initializing `I_SPECIES`.
To bypass this failure, we check "MaxVectorSize" option at the
"requires" annotation part in this patch, that is, we limit the minimal
value of "MaxVectorSize" as 16 bytes.
Testing:
1. We ran the test case on 512-bit SVE machine with 1) the default
MaxVectorSize, 2) MaxVectorSize=8 and 3) MaxVectorSize=16, and the test
passed. Note that in 2), this test case is actullay not selected since
the condition at the "requires" annotation is not satisfied.
2. We also manually checked that this patch doesn't change the
functionality of this test case, i.e. checking the register issue.
-------------
Commit messages:
- 8292395: [testbug] VectorGatherScatterTest.java fails on SVE with -XX:MaxVectorSize=8 after JDK-8288397
Changes: https://git.openjdk.org/jdk/pull/9888/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9888&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8292395
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/9888.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9888/head:pull/9888
PR: https://git.openjdk.org/jdk/pull/9888
More information about the hotspot-compiler-dev
mailing list