< prev index next >
test/jdk/jdk/incubator/vector/LongMaxVectorTests.java
Print this page
rev 55589 : 8221817: [vector] No suitable species for indexMap of Gather/Scatter VectorAPI
Reviewed-by: duke
*** 1845,1855 ****
}
@Test(dataProvider = "longUnaryOpIndexProvider")
static void gatherLongMaxVectorTests(IntFunction<long[]> fa, BiFunction<Integer,Integer,int[]> fs) {
long[] a = fa.apply(SPECIES.length());
! int[] b = fs.apply(a.length, SPECIES.length());
long[] r = new long[a.length];
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
LongVector av = LongVector.fromArray(SPECIES, a, i, b, i);
--- 1845,1855 ----
}
@Test(dataProvider = "longUnaryOpIndexProvider")
static void gatherLongMaxVectorTests(IntFunction<long[]> fa, BiFunction<Integer,Integer,int[]> fs) {
long[] a = fa.apply(SPECIES.length());
! int[] b = fs.apply(a.length * 2, SPECIES.length());
long[] r = new long[a.length];
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
LongVector av = LongVector.fromArray(SPECIES, a, i, b, i);
*** 1871,1881 ****
}
@Test(dataProvider = "longUnaryOpIndexProvider")
static void scatterLongMaxVectorTests(IntFunction<long[]> fa, BiFunction<Integer,Integer,int[]> fs) {
long[] a = fa.apply(SPECIES.length());
! int[] b = fs.apply(a.length, SPECIES.length());
long[] r = new long[a.length];
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
LongVector av = LongVector.fromArray(SPECIES, a, i);
--- 1871,1881 ----
}
@Test(dataProvider = "longUnaryOpIndexProvider")
static void scatterLongMaxVectorTests(IntFunction<long[]> fa, BiFunction<Integer,Integer,int[]> fs) {
long[] a = fa.apply(SPECIES.length());
! int[] b = fs.apply(a.length * 2, SPECIES.length());
long[] r = new long[a.length];
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
LongVector av = LongVector.fromArray(SPECIES, a, i);
< prev index next >