< prev index next >
test/jdk/jdk/incubator/vector/DoubleMaxVectorTests.java
Print this page
rev 55589 : 8221817: [vector] No suitable species for indexMap of Gather/Scatter VectorAPI
Reviewed-by: duke
@@ -1906,11 +1906,11 @@
}
@Test(dataProvider = "doubleUnaryOpIndexProvider")
static void gatherDoubleMaxVectorTests(IntFunction<double[]> fa, BiFunction<Integer,Integer,int[]> fs) {
double[] a = fa.apply(SPECIES.length());
- int[] b = fs.apply(a.length, SPECIES.length());
+ int[] b = fs.apply(a.length * 2, SPECIES.length());
double[] r = new double[a.length];
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i, b, i);
@@ -1932,11 +1932,11 @@
}
@Test(dataProvider = "doubleUnaryOpIndexProvider")
static void scatterDoubleMaxVectorTests(IntFunction<double[]> fa, BiFunction<Integer,Integer,int[]> fs) {
double[] a = fa.apply(SPECIES.length());
- int[] b = fs.apply(a.length, SPECIES.length());
+ int[] b = fs.apply(a.length * 2, SPECIES.length());
double[] r = new double[a.length];
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
< prev index next >