-
Bug
-
Resolution: Fixed
-
P4
-
23, 24
-
b03
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8340457 | 23.0.2 | Gui Cao | P4 | Resolved | Fixed | b01 |
JDK-8344803 | 21.0.6 | Paul Hohensee | P4 | Resolved | Fixed | b05 |
JDK-8334290 | na | Gui Cao | P4 | Closed | Not an Issue |
For example, the following method will fail:
```
@Test
@IR(counts = { IRNode.STORE_VECTOR_MASKED, ">= 1", IRNode.LOAD_VECTOR_MASKED, ">= 1" }, applyIfCPUFeatureOr = {"avx512", "true", "sve", "true"})
public static void testDoubleVectorStoreLoadMaskedVector() {
double[] res = new double[D_SPECIES.length()];
doubleVector.intoArray(res, 0, doubleVectorMask);
DoubleVector res2 = DoubleVector.fromArray(D_SPECIES, res, 0, doubleVectorMask);
Asserts.assertNotEquals(res2, doubleVector);
}
```
doubleVector data is:[1.0], doubleVectorMask:[true], res2 is:[1.0] So here `Asserts.assertNotEquals(res2, doubleVector);` will assert Error.
By the way, the aarch64 client jvm mode, getMaxVectorBitSize will return the default 64 bit, or RISC-V will return the default 64 bit without rvv1.0.
```
/**
* Returns the maximum vector bit size for a given element type.
*
* @param etype the element type.
* @return the maximum vector bit.
*/
/*package-private*/
static int getMaxVectorBitSize(Class<?> etype) {
// VectorSupport.getMaxLaneCount may return -1 if C2 is not enabled,
// or a value smaller than the S_64_BIT.vectorBitSize / elementSizeInBits if MaxVectorSize < 16
// If so default to S_64_BIT
int maxLaneCount = VectorSupport.getMaxLaneCount(etype);
int elementSizeInBits = LaneType.of(etype).elementSize;
return Math.max(maxLaneCount * elementSizeInBits, S_64_BIT.vectorBitSize);
}
```
- backported by
-
JDK-8340457 VectorGatherMaskFoldingTest.java failed when maximum vector bits is 64
-
- Resolved
-
-
JDK-8344803 VectorGatherMaskFoldingTest.java failed when maximum vector bits is 64
-
- Resolved
-
-
JDK-8334290 VectorGatherMaskFoldingTest.java failed when maximum vector bits is 64
-
- Closed
-
- relates to
-
JDK-8325520 Vector loads and stores with indices and masks incorrectly compiled
-
- Closed
-
- links to
-
Commit openjdk/jdk/9b0a5c5c
-
Commit(master) openjdk/jdk21u-dev/f091c767
-
Commit(master) openjdk/jdk23u/227fc468
-
Review(master) openjdk/jdk21u-dev/1100
-
Review(master) openjdk/jdk23u/103
-
Review(master) openjdk/jdk/19473