< prev index next >
test/jdk/jdk/incubator/vector/benchmark/src/main/java/benchmark/jdk/incubator/vector/LongMaxVector.java
Print this page
rev 55589 : 8221817: [vector] No suitable species for indexMap of Gather/Scatter VectorAPI
Reviewed-by: duke
@@ -1259,11 +1259,11 @@
@Benchmark
public void gather(Blackhole bh) {
long[] a = fa.apply(SPECIES.length());
- int[] b = fs.apply(a.length, 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);
@@ -1277,11 +1277,11 @@
@Benchmark
public void scatter(Blackhole bh) {
long[] a = fa.apply(SPECIES.length());
- int[] b = fs.apply(a.length, 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 >