8358217: jdk/incubator/vector/PreferredSpeciesTest.java#id0 failures - expected [128] but found [256]
Co-authored-by: Paul Sandoz <psandoz@openjdk.org> Co-authored-by: Jaikiran Pai <jpai@openjdk.org> Reviewed-by: syan, psandoz
This commit is contained in:
parent
8f821175cc
commit
901144ee0d
@ -764,7 +764,6 @@ sun/tools/jstat/jstatLineCounts4.sh 8248691,8268211
|
|||||||
|
|
||||||
jdk/incubator/vector/ShortMaxVectorTests.java 8306592 generic-i586
|
jdk/incubator/vector/ShortMaxVectorTests.java 8306592 generic-i586
|
||||||
jdk/incubator/vector/LoadJsvmlTest.java 8305390 windows-x64
|
jdk/incubator/vector/LoadJsvmlTest.java 8305390 windows-x64
|
||||||
jdk/incubator/vector/PreferredSpeciesTest.java#id0 8358217 generic-all
|
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
|
@ -133,25 +133,18 @@ public class PreferredSpeciesTest {
|
|||||||
void testLargestShapeFor(Class<?> c) {
|
void testLargestShapeFor(Class<?> c) {
|
||||||
final int S_64_BITS = 64;
|
final int S_64_BITS = 64;
|
||||||
int elemSize = 0;
|
int elemSize = 0;
|
||||||
VectorSpecies<?> maxVectorSpecies;
|
|
||||||
if (c == byte.class) {
|
if (c == byte.class) {
|
||||||
elemSize = Byte.SIZE;
|
elemSize = Byte.SIZE;
|
||||||
maxVectorSpecies = ByteVector.SPECIES_MAX;
|
|
||||||
} else if (c == short.class) {
|
} else if (c == short.class) {
|
||||||
elemSize = Short.SIZE;
|
elemSize = Short.SIZE;
|
||||||
maxVectorSpecies = ShortVector.SPECIES_MAX;
|
|
||||||
} else if (c == int.class) {
|
} else if (c == int.class) {
|
||||||
elemSize = Integer.SIZE;
|
elemSize = Integer.SIZE;
|
||||||
maxVectorSpecies = IntVector.SPECIES_MAX;
|
|
||||||
} else if (c == long.class) {
|
} else if (c == long.class) {
|
||||||
elemSize = Long.SIZE;
|
elemSize = Long.SIZE;
|
||||||
maxVectorSpecies = LongVector.SPECIES_MAX;
|
|
||||||
} else if (c == float.class) {
|
} else if (c == float.class) {
|
||||||
elemSize = Float.SIZE;
|
elemSize = Float.SIZE;
|
||||||
maxVectorSpecies = FloatVector.SPECIES_MAX;
|
|
||||||
} else if (c == double.class) {
|
} else if (c == double.class) {
|
||||||
elemSize = Double.SIZE;
|
elemSize = Double.SIZE;
|
||||||
maxVectorSpecies = DoubleVector.SPECIES_MAX;
|
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Bad vector element type: " + c.getName());
|
throw new IllegalArgumentException("Bad vector element type: " + c.getName());
|
||||||
}
|
}
|
||||||
@ -161,11 +154,6 @@ public class PreferredSpeciesTest {
|
|||||||
int maxLaneCount = VectorSupport.getMaxLaneCount(c);
|
int maxLaneCount = VectorSupport.getMaxLaneCount(c);
|
||||||
int max = Math.max(maxLaneCount * elemSize, S_64_BITS);
|
int max = Math.max(maxLaneCount * elemSize, S_64_BITS);
|
||||||
|
|
||||||
//Assert we're using the same element when comparing shapes
|
|
||||||
Assert.assertEquals(c, maxVectorSpecies.elementType());
|
|
||||||
|
|
||||||
Assert.assertEquals(vs.vectorBitSize(), max);
|
Assert.assertEquals(vs.vectorBitSize(), max);
|
||||||
Assert.assertEquals(vs.vectorBitSize(), maxVectorSpecies.vectorBitSize());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user