Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions test/jdk/jdk/incubator/vector/AbstractVectorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ static int[] fillInts(int[] a, IntOp f) {
Arrays.fill(a, true);
return a;
}),
withToString("mask[false]", boolean[]::new),
withToString("mask[random]", (int s) -> {
return fill_boolean(s,_i -> RAND.nextBoolean());
})
withToString("mask[false]", boolean[]::new)
);

static final List<List<IntFunction<boolean[]>>>
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Byte128VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,12 @@ static byte bits(byte e) {
.flatMap(pair -> BYTE_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<byte[]>>> BYTE_GENERATOR_TRIPLES =
BYTE_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4503,7 +4509,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueByte128VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4527,7 +4533,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueByte128VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Byte256VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,12 @@ static byte bits(byte e) {
.flatMap(pair -> BYTE_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<byte[]>>> BYTE_GENERATOR_TRIPLES =
BYTE_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4503,7 +4509,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueByte256VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4527,7 +4533,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueByte256VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Byte512VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,12 @@ static byte bits(byte e) {
.flatMap(pair -> BYTE_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<byte[]>>> BYTE_GENERATOR_TRIPLES =
BYTE_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4503,7 +4509,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueByte512VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4527,7 +4533,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueByte512VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Byte64VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,12 @@ static byte bits(byte e) {
.flatMap(pair -> BYTE_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<byte[]>>> BYTE_GENERATOR_TRIPLES =
BYTE_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4503,7 +4509,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueByte64VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4527,7 +4533,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueByte64VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/ByteMaxVectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,12 @@ static byte bits(byte e) {
.flatMap(pair -> BYTE_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<byte[]>>> BYTE_GENERATOR_TRIPLES =
BYTE_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4508,7 +4514,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueByteMaxVectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4532,7 +4538,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueByteMaxVectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Double128VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,12 @@ static long bits(double e) {
flatMap(fa -> DOUBLE_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<double[]>>> DOUBLE_GENERATOR_TRIPLES =
DOUBLE_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Double256VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,12 @@ static long bits(double e) {
flatMap(fa -> DOUBLE_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<double[]>>> DOUBLE_GENERATOR_TRIPLES =
DOUBLE_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Double512VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,12 @@ static long bits(double e) {
flatMap(fa -> DOUBLE_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<double[]>>> DOUBLE_GENERATOR_TRIPLES =
DOUBLE_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Double64VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,12 @@ static long bits(double e) {
flatMap(fa -> DOUBLE_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<double[]>>> DOUBLE_GENERATOR_TRIPLES =
DOUBLE_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/DoubleMaxVectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,12 @@ static long bits(double e) {
flatMap(fa -> DOUBLE_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<double[]>>> DOUBLE_GENERATOR_TRIPLES =
DOUBLE_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Float128VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,12 @@ static int bits(float e) {
flatMap(fa -> FLOAT_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<float[]>>> FLOAT_GENERATOR_TRIPLES =
FLOAT_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Float256VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,12 @@ static int bits(float e) {
flatMap(fa -> FLOAT_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<float[]>>> FLOAT_GENERATOR_TRIPLES =
FLOAT_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Float512VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,12 @@ static int bits(float e) {
flatMap(fa -> FLOAT_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<float[]>>> FLOAT_GENERATOR_TRIPLES =
FLOAT_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/Float64VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,12 @@ static int bits(float e) {
flatMap(fa -> FLOAT_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<float[]>>> FLOAT_GENERATOR_TRIPLES =
FLOAT_GENERATOR_PAIRS.stream().
Expand Down
6 changes: 6 additions & 0 deletions test/jdk/jdk/incubator/vector/FloatMaxVectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,12 @@ static int bits(float e) {
flatMap(fa -> FLOAT_GENERATORS.stream().skip(1).map(fb -> List.of(fa, fb))).
collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<float[]>>> FLOAT_GENERATOR_TRIPLES =
FLOAT_GENERATOR_PAIRS.stream().
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Int128VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,12 @@ static int bits(int e) {
.flatMap(pair -> INT_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<int[]>>> INT_GENERATOR_TRIPLES =
INT_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4547,7 +4553,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueInt128VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4571,7 +4577,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueInt128VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Int256VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,12 @@ static int bits(int e) {
.flatMap(pair -> INT_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<int[]>>> INT_GENERATOR_TRIPLES =
INT_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4547,7 +4553,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueInt256VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4571,7 +4577,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueInt256VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
10 changes: 8 additions & 2 deletions test/jdk/jdk/incubator/vector/Int512VectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,12 @@ static int bits(int e) {
.flatMap(pair -> INT_SATURATING_GENERATORS_ASSOC.stream().map(f -> List.of(pair.get(0), pair.get(1), f)))
.collect(Collectors.toList());

@DataProvider
public Object[][] boolUnaryOpProvider() {
return BOOL_ARRAY_GENERATORS.stream().
map(f -> new Object[]{f}).
toArray(Object[][]::new);
}

static final List<List<IntFunction<int[]>>> INT_GENERATOR_TRIPLES =
INT_GENERATOR_PAIRS.stream().
Expand Down Expand Up @@ -4547,7 +4553,7 @@ static boolean anyTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void anyTrueInt512VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand All @@ -4571,7 +4577,7 @@ static boolean allTrue(boolean[] a, int idx) {
return res;
}

@Test(dataProvider = "boolMaskUnaryOpProvider")
@Test(dataProvider = "boolUnaryOpProvider")
static void allTrueInt512VectorTests(IntFunction<boolean[]> fm) {
boolean[] mask = fm.apply(SPECIES.length());
boolean[] r = fmr.apply(SPECIES.length());
Expand Down
Loading