From 580f22ccb7960bf61bd46f33de79277918f0e29f Mon Sep 17 00:00:00 2001 From: Paul Sandoz Date: Thu, 19 Nov 2020 16:58:03 +0000 Subject: [PATCH] 8256581: Refactor vector conversion tests Reviewed-by: vlivanov --- .../vector/AbstractVectorConversionTest.java | 779 +- .../vector/Vector128ConversionTests.java | 7341 +---------------- .../vector/Vector256ConversionTests.java | 7341 +---------------- .../vector/Vector512ConversionTests.java | 7341 +---------------- .../vector/Vector64ConversionTests.java | 7339 +--------------- .../vector/VectorMaxConversionTests.java | 7341 +---------------- 6 files changed, 463 insertions(+), 37019 deletions(-) diff --git a/test/jdk/jdk/incubator/vector/AbstractVectorConversionTest.java b/test/jdk/jdk/incubator/vector/AbstractVectorConversionTest.java index d1303bfd295b1..0be9c9adfa739 100644 --- a/test/jdk/jdk/incubator/vector/AbstractVectorConversionTest.java +++ b/test/jdk/jdk/incubator/vector/AbstractVectorConversionTest.java @@ -20,35 +20,38 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -import jdk.incubator.vector.*; -import jdk.internal.vm.annotation.ForceInline; +import jdk.incubator.vector.Vector; +import jdk.incubator.vector.VectorOperators; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; import org.testng.Assert; -import org.testng.annotations.DataProvider; -import org.testng.annotations.AfterMethod; import org.testng.ITestResult; +import org.testng.annotations.AfterMethod; -import java.util.Arrays; +import java.lang.invoke.MethodHandle; +import java.lang.invoke.MethodHandles; +import java.lang.reflect.Array; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.ArrayList; import java.util.List; -import java.nio.*; +import java.util.function.BiConsumer; +import java.util.function.Function; import java.util.function.IntFunction; abstract class AbstractVectorConversionTest { - static final int INVOC_COUNT = Integer.getInteger("jdk.incubator.vector.test.loop-iterations", 1000); - - static VectorOperators.Conversion B2B = VectorOperators.Conversion.ofCast(byte.class, byte.class); - static VectorOperators.Conversion S2S = VectorOperators.Conversion.ofCast(short.class, short.class); - static VectorOperators.Conversion I2I = VectorOperators.Conversion.ofCast(int.class, int.class); - static VectorOperators.Conversion L2L = VectorOperators.Conversion.ofCast(long.class, long.class); - static VectorOperators.Conversion F2F = VectorOperators.Conversion.ofCast(float.class, float.class); - static VectorOperators.Conversion D2D = VectorOperators.Conversion.ofCast(double.class, double.class); - static VectorShape getMaxBit() { - return VectorShape.S_Max_BIT; + @AfterMethod + public void getRunTime(ITestResult tr) { + long time = tr.getEndMillis() - tr.getStartMillis(); + System.out.println(tr.getName() + " took " + time + " ms"); } + static final int INVOC_COUNT = Integer.getInteger("jdk.incubator.vector.test.loop-iterations", 1000); + static IntFunction withToString(String s, IntFunction f) { - return new IntFunction() { + return new IntFunction<>() { @Override public T apply(int v) { return f.apply(v); @@ -65,7 +68,7 @@ interface ToByteF { byte apply(int i); } - static byte[] fill_byte(int s , ToByteF f) { + static byte[] fill_byte(int s, ToByteF f) { return fill_byte(new byte[s], f); } @@ -76,27 +79,11 @@ static byte[] fill_byte(byte[] a, ToByteF f) { return a; } - interface ToBoolF { - boolean apply(int i); - } - - static boolean[] fill_bool(int s , ToBoolF f) { - return fill_bool(new boolean[s], f); - } - - static boolean[] fill_bool(boolean[] a, ToBoolF f) { - for (int i = 0; i < a.length; i++) { - a[i] = f.apply(i); - } - return a; - } - interface ToShortF { short apply(int i); } - - static short[] fill_short(int s , ToShortF f) { + static short[] fill_short(int s, ToShortF f) { return fill_short(new short[s], f); } @@ -111,7 +98,7 @@ interface ToIntF { int apply(int i); } - static int[] fill_int(int s , ToIntF f) { + static int[] fill_int(int s, ToIntF f) { return fill_int(new int[s], f); } @@ -126,7 +113,7 @@ interface ToLongF { long apply(int i); } - static long[] fill_long(int s , ToLongF f) { + static long[] fill_long(int s, ToLongF f) { return fill_long(new long[s], f); } @@ -141,7 +128,7 @@ interface ToFloatF { float apply(int i); } - static float[] fill_float(int s , ToFloatF f) { + static float[] fill_float(int s, ToFloatF f) { return fill_float(new float[s], f); } @@ -156,7 +143,7 @@ interface ToDoubleF { double apply(int i); } - static double[] fill_double(int s , ToDoubleF f) { + static double[] fill_double(int s, ToDoubleF f) { return fill_double(new double[s], f); } @@ -168,445 +155,337 @@ static double[] fill_double(double[] a, ToDoubleF f) { } static final List> BYTE_GENERATORS = List.of( - withToString("byte(i)", (int s) -> { - return fill_byte(s, i -> (byte)(i+1)); - }) + withToString("byte(i)", (int s) -> fill_byte(s, i -> (byte) (i + 1))) ); + static final List> SHORT_GENERATORS = List.of( + withToString("short(i)", (int s) -> fill_short(s, i -> (short) (i * 100 + 1))) + ); - @AfterMethod - public void getRunTime(ITestResult tr) { - long time = tr.getEndMillis() - tr.getStartMillis(); - System.out.println(tr.getName() + " took " + time + " ms"); - } - - @DataProvider - public Object[][] byteUnaryOpProvider() { - return BYTE_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); - } + static final List> INT_GENERATORS = List.of( + withToString("int(i)", (int s) -> fill_int(s, i -> (int) (i ^ ((i & 1) - 1)))) + ); - static final List> BOOL_GENERATORS = List.of( - withToString("boolean(i%3)", (int s) -> { - return fill_bool(s, i -> i % 3 == 0); - }) + static final List> LONG_GENERATORS = List.of( + withToString("long(i)", (int s) -> fill_long(s, i -> (long) (i ^ ((i & 1) - 1)))) ); - @DataProvider - public Object[][] booleanUnaryOpProvider() { - return BOOL_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); - } + static final List> FLOAT_GENERATORS = List.of( + withToString("float(i)", (int s) -> fill_float(s, i -> (float) (i * 10 + 0.1))) + ); - static final List> SHORT_GENERATORS = List.of( - withToString("short(i)", (int s) -> { - return fill_short(s, i -> (short)(i*100+1)); - }) + static final List> DOUBLE_GENERATORS = List.of( + withToString("double(i)", (int s) -> fill_double(s, i -> (double) (i * 10 + 0.1))) ); - @DataProvider - public Object[][] shortUnaryOpProvider() { - return SHORT_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); + static List sourceGenerators(Class src) { + if (src == byte.class) { + return BYTE_GENERATORS; + } + else if (src == short.class) { + return SHORT_GENERATORS; + } + else if (src == int.class) { + return INT_GENERATORS; + } + else if (src == long.class) { + return LONG_GENERATORS; + } + else if (src == float.class) { + return FLOAT_GENERATORS; + } + else if (src == double.class) { + return DOUBLE_GENERATORS; + } + else + throw new IllegalStateException(); } - static final List> INT_GENERATORS = List.of( - withToString("int(i)", (int s) -> { - return fill_int(s, i -> (int)(i^((i&1)-1))); - }) - ); + static Object[][] fixedShapeXFixedShapeSpeciesArgs(VectorShape shape) { + List args = new ArrayList<>(); - @DataProvider - public Object[][] intUnaryOpProvider() { - return INT_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); - } + for (Class srcE : List.of(byte.class, short.class, int.class, long.class, float.class, double.class)) { + VectorSpecies src = VectorSpecies.of(srcE, shape); + List srcGens = sourceGenerators(srcE); - static final List> LONG_GENERATORS = List.of( - withToString("long(i)", (int s) -> { - return fill_long(s, i -> (long)(i^((i&1)-1))); - }) - ); + for (Class dstE : List.of(byte.class, short.class, int.class, long.class, float.class, double.class)) { + VectorSpecies dst = VectorSpecies.of(dstE, shape); + + for (Object srcGen : srcGens) { + args.add(new Object[]{src, dst, srcGen}); + } + } + } - @DataProvider - public Object[][] longUnaryOpProvider() { - return LONG_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); + return args.toArray(Object[][]::new); } - static final List> FLOAT_GENERATORS = List.of( - withToString("float(i)", (int s) -> { - return fill_float(s, i -> (float)(i * 10 + 0.1)); - }) - ); + static Object[][] fixedShapeXShapeSpeciesArgs(VectorShape srcShape) { + List args = new ArrayList<>(); + + for (Class srcE : List.of(byte.class, short.class, int.class, long.class, float.class, double.class)) { + VectorSpecies src = VectorSpecies.of(srcE, srcShape); + List srcGens = sourceGenerators(srcE); + for (VectorShape dstShape : VectorShape.values()) { + for (Class dstE : List.of(byte.class, short.class, int.class, long.class, float.class, double.class)) { + VectorSpecies dst = VectorSpecies.of(dstE, dstShape); - @DataProvider - public Object[][] floatUnaryOpProvider() { - return FLOAT_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); + for (Object srcGen : srcGens) { + args.add(new Object[]{src, dst, srcGen}); + } + } + } + } + + return args.toArray(Object[][]::new); + } + + + public enum ConvAPI {CONVERT, CONVERTSHAPE, CASTSHAPE, REINTERPRETSHAPE} + + + static Function convertValueFunction(Class to) { + if (to == byte.class) + return Number::byteValue; + else if (to == short.class) + return Number::shortValue; + else if (to == int.class) + return Number::intValue; + else if (to == long.class) + return Number::longValue; + else if (to == float.class) + return Number::floatValue; + else if (to == double.class) + return Number::doubleValue; + else + throw new IllegalStateException(); + } + + static BiConsumer putBufferValueFunction(Class from) { + if (from == byte.class) + return (bb, o) -> bb.put((byte) o); + else if (from == short.class) + return (bb, o) -> bb.putShort((short) o); + else if (from == int.class) + return (bb, o) -> bb.putInt((int) o); + else if (from == long.class) + return (bb, o) -> bb.putLong((long) o); + else if (from == float.class) + return (bb, o) -> bb.putFloat((float) o); + else if (from == double.class) + return (bb, o) -> bb.putDouble((double) o); + else + throw new IllegalStateException(); + } + + static Function getBufferValueFunction(Class to) { + if (to == byte.class) + return ByteBuffer::get; + else if (to == short.class) + return ByteBuffer::getShort; + else if (to == int.class) + return ByteBuffer::getInt; + else if (to == long.class) + return ByteBuffer::getLong; + else if (to == float.class) + return ByteBuffer::getFloat; + else if (to == double.class) + return ByteBuffer::getDouble; + else + throw new IllegalStateException(); + } + + static final ClassValue ZERO = new ClassValue<>() { + @Override + protected Object computeValue(Class type) { + MethodHandle zeroHandle = MethodHandles.zero(type); + try { + return zeroHandle.invoke(); + } catch (Throwable t) { + throw new RuntimeException(t); + } + } + }; + + static void zeroArray(Object a, int offset, int length) { + Object zero = ZERO.get(a.getClass().getComponentType()); + for (int i = 0; i < length; i++) { + Array.set(a, offset + i, zero); + } } - static final List> DOUBLE_GENERATORS = List.of( - withToString("double(i)", (int s) -> { - return fill_double(s, i -> (double)(i * 10 + 0.1)); - }) - ); + static void copyConversionArray(Object src, int srcPos, + Object dest, int destPos, + int length, + Function c) { + for (int i = 0; i < length; i++) { + Number v = (Number) Array.get(src, srcPos + i); + Array.set(dest, destPos + i, c.apply(v)); + } + } - @DataProvider - public Object[][] doubleUnaryOpProvider() { - return DOUBLE_GENERATORS.stream(). - map(f -> new Object[]{f}). - toArray(Object[][]::new); - } - - - public enum ConvAPI { CONVERT, CONVERTSHAPE, CASTSHAPE, REINTERPRETSHAPE }; - - static E[] getBoxedArray(Class toClass, int len) { - if(toClass.equals(Byte.class)) { - byte[] b = new byte[len]; - return (E[])(getBoxedArray(b)); - } else if(toClass.equals(Short.class)) { - short [] s = new short[len]; - return (E[])(getBoxedArray(s)); - } else if(toClass.equals(Integer.class)) { - int[] i = new int[len]; - return (E[])(getBoxedArray(i)); - } else if(toClass.equals(Long.class)) { - long[] l = new long[len]; - return (E[])(getBoxedArray(l)); - } else if(toClass.equals(Float.class)) { - float[] f = new float[len]; - return (E[])(getBoxedArray(f)); - } else if(toClass.equals(Double.class)) { - double[] d = new double[len]; - return (E[])(getBoxedArray(d)); - } else - assert(false); - return null; - } - - static void copyPrimArrayToBoxedArray(E [] boxed_arr, int index, List arrL) { - var arr = (arrL.get(0)); - if (boxed_arr instanceof Byte []) { - byte [] barr = (byte[])arr; - assert(boxed_arr.length >= index + barr.length); - for(int i = 0 ; i < barr.length; i++) - boxed_arr[i+index] = (E)Byte.valueOf(barr[i]); - } - else if (boxed_arr instanceof Short []) { - short [] sarr = (short[])arr; - assert(boxed_arr.length >= index + sarr.length); - for(int i = 0 ; i < sarr.length; i++) - boxed_arr[i+index] = (E)Short.valueOf(sarr[i]); - } - else if (boxed_arr instanceof Integer []) { - int [] iarr = (int[])arr; - assert(boxed_arr.length >= index + iarr.length); - for(int i = 0 ; i < iarr.length; i++) - boxed_arr[i+index] = (E)Integer.valueOf(iarr[i]); - } - else if (boxed_arr instanceof Long []) { - long [] larr = (long[])arr; - assert(boxed_arr.length >= index + larr.length); - for(int i = 0 ; i < larr.length; i++) - boxed_arr[i+index] = (E)Long.valueOf(larr[i]); - } - else if (boxed_arr instanceof Float []) { - float [] farr = (float[])arr; - assert(boxed_arr.length >= index + farr.length); - for(int i = 0 ; i < farr.length; i++) - boxed_arr[i+index] = (E)Float.valueOf(farr[i]); - } - else if (boxed_arr instanceof Double []) { - double [] darr = (double[])arr; - assert(boxed_arr.length >= index + darr.length); - for(int i = 0 ; i < darr.length; i++) - boxed_arr[i+index] = (E)Double.valueOf(darr[i]); - } - else - assert(false); - } - - static Byte[] getBoxedArray(byte[] arr) { - Byte[] boxed_arr = new Byte[arr.length]; - for (int i = 0; i < arr.length; i++) - boxed_arr[i] = Byte.valueOf(arr[i]); - return boxed_arr; - } - static Short[] getBoxedArray(short[] arr) { - Short[] boxed_arr = new Short[arr.length]; - for (int i = 0; i < arr.length; i++) - boxed_arr[i] = Short.valueOf(arr[i]); - return boxed_arr; - } - static Integer[] getBoxedArray(int[] arr) { - Integer[] boxed_arr = new Integer[arr.length]; - for (int i = 0; i < arr.length; i++) - boxed_arr[i] = Integer.valueOf(arr[i]); - return boxed_arr; - } - static Long[] getBoxedArray(long[] arr) { - Long[] boxed_arr = new Long[arr.length]; - for (int i = 0; i < arr.length; i++) - boxed_arr[i] = Long.valueOf(arr[i]); - return boxed_arr; - } - static Float[] getBoxedArray(float[] arr) { - Float[] boxed_arr = new Float[arr.length]; - for (int i = 0; i < arr.length; i++) - boxed_arr[i] = Float.valueOf(arr[i]); - return boxed_arr; - } - static Double[] getBoxedArray(double[] arr) { - Double[] boxed_arr = new Double[arr.length]; - for (int i = 0; i < arr.length; i++) - boxed_arr[i] = Double.valueOf(arr[i]); - return boxed_arr; - } - - static Number zeroValue(E to) { - if (to.getClass().equals(Byte.class)) - return Byte.valueOf((byte)0); - else if (to.getClass().equals(Short.class)) - return Short.valueOf((short)0); - else if (to.getClass().equals(Integer.class)) - return Integer.valueOf(0); - else if (to.getClass().equals(Long.class)) - return Long.valueOf((long)0); - else if (to.getClass().equals(Float.class)) - return Float.valueOf((float)0); - else if (to.getClass().equals(Double.class)) - return Double.valueOf((double)0); - else - assert (false); - return null; - } - - static Number convertValue(E from, F to) { - if (to.getClass().equals(Byte.class)) - return Byte.valueOf(((Number)from).byteValue()); - else if (to.getClass().equals(Short.class)) - return Short.valueOf(((Number)from).shortValue()); - else if (to.getClass().equals(Integer.class)) - return Integer.valueOf(((Number)from).intValue()); - else if (to.getClass().equals(Long.class)) - return Long.valueOf(((Number)from).longValue()); - else if (to.getClass().equals(Float.class)) - return Float.valueOf(((Number)from).floatValue()); - else if (to.getClass().equals(Double.class)) - return Double.valueOf(((Number)from).doubleValue()); - else - assert (false); - return null; - } - - static void putValue(ByteBuffer bb, E [] arr, int index) { - if (arr[index].getClass().equals(Byte.class)) - bb.put(((Byte)(arr[index])).byteValue()); - else if (arr[index].getClass().equals(Short.class)) - bb.putShort(((Short)arr[index]).shortValue()); - else if (arr[index].getClass().equals(Integer.class)) - bb.putInt(((Integer)arr[index]).intValue()); - else if (arr[index].getClass().equals(Long.class)) - bb.putLong(((Long)arr[index]).longValue()); - else if (arr[index].getClass().equals(Float.class)) - bb.putFloat(((Float)arr[index]).floatValue()); - else if (arr[index].getClass().equals(Double.class)) - bb.putDouble(((Double)arr[index]).doubleValue()); - else - assert (false); - } - - static Number getValue(ByteBuffer bb, Class toClass) { - if (toClass.equals(Byte.class)) - return (Number)(Byte.valueOf(bb.get())); - else if (toClass.equals(Short.class)) - return (Number)(Short.valueOf(bb.getShort())); - else if (toClass.equals(Integer.class)) - return (Number)(Integer.valueOf(bb.getInt())); - else if (toClass.equals(Long.class)) - return (Number)(Long.valueOf(bb.getLong())); - else if (toClass.equals(Float.class)) - return (Number)(Float.valueOf(bb.getFloat())); - else if (toClass.equals(Double.class)) - return (Number)(Double.valueOf(bb.getDouble())); - else - assert (false); - return null; - } - - static void - expanding_reinterpret_scalar(E[] in, F[] out, int in_vec_size, int out_vec_size, + static void + expanding_reinterpret_scalar(Object in, Object out, + int in_vec_size, int out_vec_size, int in_vec_lane_cnt, int out_vec_lane_cnt, - int in_idx, int out_idx, int part) { - int SLICE_FACTOR = Math.max(in_vec_size, out_vec_size) / Math.min(in_vec_size, out_vec_size); - int ELEMENTS_IN_SLICE = in_vec_lane_cnt / SLICE_FACTOR; - assert (part < SLICE_FACTOR && part >= 0); - int start_idx = in_idx + part * ELEMENTS_IN_SLICE; - int end_idx = start_idx + ELEMENTS_IN_SLICE; - var bb = ByteBuffer.allocate(out_vec_size); - for (int i = start_idx; i < end_idx ; i++) - putValue(bb, in, i); - bb.rewind(); - Class toClass = out[0].getClass(); - for (int i = 0; i < out_vec_lane_cnt; i++) - out[i + out_idx] = (F)(Vector64ConversionTests.getValue(bb, toClass)); - } - - static void - contracting_reinterpret_scalar(E[] in, F[] out, int in_vec_size, int out_vec_size, + int in_idx, int out_idx, int part, + BiConsumer putValue, + Function getValue) { + int SLICE_FACTOR = Math.max(in_vec_size, out_vec_size) / Math.min(in_vec_size, out_vec_size); + int ELEMENTS_IN_SLICE = in_vec_lane_cnt / SLICE_FACTOR; + assert (part < SLICE_FACTOR && part >= 0); + + int start_idx = in_idx + part * ELEMENTS_IN_SLICE; + int end_idx = start_idx + ELEMENTS_IN_SLICE; + + var bb = ByteBuffer.allocate(out_vec_size).order(ByteOrder.nativeOrder()); + for (int i = start_idx; i < end_idx; i++) { + Object v = Array.get(in, i); + putValue.accept(bb, v); + } + bb.rewind(); + + for (int i = 0; i < out_vec_lane_cnt; i++) { + Number v = getValue.apply(bb); + Array.set(out, i + out_idx, v); + } + } + + static void + contracting_reinterpret_scalar(Object in, Object out, + int in_vec_size, int out_vec_size, int in_vec_lane_cnt, int out_vec_lane_cnt, - int in_idx, int out_idx, int part) { - int SLICE_FACTOR = Math.max(in_vec_size, out_vec_size) / Math.min(in_vec_size, out_vec_size); - int ELEMENTS_OUT_SLICE = out_vec_lane_cnt / SLICE_FACTOR; - assert (part > -SLICE_FACTOR && part <= 0); - int start_idx = out_idx + (-part) * ELEMENTS_OUT_SLICE; - int end_idx = start_idx + ELEMENTS_OUT_SLICE; - for (int i = 0; i < out_vec_lane_cnt; i++) - out[i+out_idx] = (F)(zeroValue(out[i])); - var bb = ByteBuffer.allocate(in_vec_size); - for (int i = 0; i < in_vec_lane_cnt; i++) - putValue(bb, in, i + in_idx); - bb.rewind(); - Class toClass = out[0].getClass(); - for (int i = start_idx; i < end_idx; i++) - out[i] = - (F)(Vector64ConversionTests.getValue(bb, toClass)); - } - - static void - expanding_conversion_scalar(E[] in, F[] out, int in_vec_len, int out_vec_len, - int in_idx, int out_idx, int part) { - int SLICE_FACTOR = Math.max(in_vec_len, out_vec_len) / Math.min(in_vec_len, out_vec_len); - assert (part < SLICE_FACTOR && part >= 0); - int start_idx = part * out_vec_len; - for (int i = 0; i < out_vec_len; i++) - out[i + out_idx] = (F)(Vector64ConversionTests.convertValue(in[i + start_idx + in_idx], out[i + out_idx])); - } - - static void - contracting_conversion_scalar(E[] in, F[] out, int in_vec_len, int out_vec_len, - int in_idx, int out_idx, int part) { - int SLICE_FACTOR = Math.max(out_vec_len, in_vec_len) / Math.min(out_vec_len, in_vec_len); - assert (part > -SLICE_FACTOR && part <= 0); - int start_idx = -part * in_vec_len; - for (int i = 0; i < out_vec_len; i++) - out[i+out_idx] = (F)(zeroValue(out[i+out_idx])); - for (int i = 0; i < in_vec_len; i++) - out[i + start_idx + out_idx] = - (F)(Vector64ConversionTests.convertValue(in[i+in_idx], out[i + start_idx+ out_idx])); - } - - static int [] getPartsArray(int m , boolean is_contracting_conv) { - int [] parts = new int[m]; - int part_init = is_contracting_conv ? -m+1 : 0; - for(int i = 0; i < parts.length ; i++) - parts[i] = part_init+i; - return parts; - } - - static void assertResultsEquals(E[] ref, E[] res, int species_len) { - Assert.assertEquals(res.length , ref.length); - int TRIP_COUNT = res.length - (res.length & ~(species_len - 1)); - for (int i = 0; i < TRIP_COUNT; i++) { - System.out.println("res[" + i + "] = " + res[i] + " ref[" + i + - "] = " + ref[i]); - Assert.assertEquals(res[i], ref[i]); - } - } - - static Vector vectorFactory(List arrL, int sindex, VectorSpecies SPECIES) { - var arr = arrL.get(0); - if (SPECIES.elementType().equals(byte.class)) - return ByteVector.fromArray((VectorSpecies)(SPECIES), (byte[])(arr), sindex); - else if (SPECIES.elementType().equals(short.class)) - return ShortVector.fromArray((VectorSpecies)(SPECIES), (short[])(arr), sindex); - else if (SPECIES.elementType().equals(int.class)) - return IntVector.fromArray((VectorSpecies)(SPECIES), (int[])(arr), sindex); - else if (SPECIES.elementType().equals(long.class)) - return LongVector.fromArray((VectorSpecies)(SPECIES), (long[])(arr), sindex); - else if (SPECIES.elementType().equals(float.class)) - return FloatVector.fromArray((VectorSpecies)(SPECIES), (float[])(arr), sindex); - else if (SPECIES.elementType().equals(double.class)) - return DoubleVector.fromArray((VectorSpecies)(SPECIES), (double[])(arr), sindex); - else - assert(false); - return null; - } - - static void conversion_kernel(VectorSpecies SPECIES, VectorSpecies OSPECIES, - I[] boxed_a, O[] boxed_ref, O[] boxed_res, List unboxed_a, - VectorOperators.Conversion OP, ConvAPI API, int in_len) { - int src_species_len = SPECIES.length(); - int dst_species_len = OSPECIES.length(); - boolean is_contracting_conv = src_species_len * OSPECIES.elementSize() < OSPECIES.vectorBitSize(); - int m = Math.max(dst_species_len,src_species_len) / Math.min(src_species_len,dst_species_len); - - int [] parts = getPartsArray(m, is_contracting_conv); - for (int ic = 0; ic < INVOC_COUNT; ic++) { - for (int i=0, j=0; i < in_len; i += src_species_len, j+= dst_species_len) { + int in_idx, int out_idx, int part, + BiConsumer putValue, + Function getValue) { + int SLICE_FACTOR = Math.max(in_vec_size, out_vec_size) / Math.min(in_vec_size, out_vec_size); + int ELEMENTS_OUT_SLICE = out_vec_lane_cnt / SLICE_FACTOR; + assert (part > -SLICE_FACTOR && part <= 0); + + int start_idx = out_idx + (-part) * ELEMENTS_OUT_SLICE; + int end_idx = start_idx + ELEMENTS_OUT_SLICE; + + zeroArray(out, out_idx, out_vec_lane_cnt); + + var bb = ByteBuffer.allocate(in_vec_size).order(ByteOrder.nativeOrder()); + for (int i = 0; i < in_vec_lane_cnt; i++) { + Object v = Array.get(in, i + in_idx); + putValue.accept(bb, v); + } + bb.rewind(); + + for (int i = start_idx; i < end_idx; i++) { + Number v = getValue.apply(bb); + Array.set(out, i, v); + } + } + + static int[] getPartsArray(int m, boolean is_contracting_conv) { + int[] parts = new int[m]; + int part_init = is_contracting_conv ? -m + 1 : 0; + for (int i = 0; i < parts.length; i++) + parts[i] = part_init + i; + return parts; + } + + static void conversion_kernel(VectorSpecies srcSpecies, VectorSpecies destSpecies, + Object in, + ConvAPI conv) { + VectorOperators.Conversion convOp = VectorOperators.Conversion.ofCast( + srcSpecies.elementType(), destSpecies.elementType()); + int in_len = Array.getLength(in); + int out_len = (in_len / srcSpecies.length()) * destSpecies.length(); + int src_species_len = srcSpecies.length(); + int dst_species_len = destSpecies.length(); + boolean is_contracting_conv = src_species_len * destSpecies.elementSize() < destSpecies.vectorBitSize(); + int m = Math.max(dst_species_len, src_species_len) / Math.min(src_species_len, dst_species_len); + + int[] parts = getPartsArray(m, is_contracting_conv); + + Object expected = Array.newInstance(destSpecies.elementType(), out_len); + Object actual = Array.newInstance(destSpecies.elementType(), out_len); + + Function convertValue = convertValueFunction(destSpecies.elementType()); + + // Calculate expected result + for (int i = 0, j = 0; i < in_len; i += src_species_len, j += dst_species_len) { int part = parts[i % parts.length]; - var av = Vector64ConversionTests.vectorFactory(unboxed_a, i, SPECIES); - F rv = null; - switch(API) { - default: - assert(false); - break; - case CONVERT: - rv = ((F)(av.convert(OP, part))); - break; - case CONVERTSHAPE: - rv = ((F)(av.convertShape(OP, OSPECIES, part))); - break; - case CASTSHAPE: - rv = ((F)(av.castShape(OSPECIES, part))); - break; + + if (is_contracting_conv) { + int start_idx = -part * src_species_len; + zeroArray(expected, j, dst_species_len); + copyConversionArray(in, i, expected, start_idx + j, src_species_len, convertValue); + } else { + int start_idx = part * dst_species_len; + copyConversionArray(in, start_idx + i, expected, j, dst_species_len, convertValue); + } + } + + for (int ic = 0; ic < INVOC_COUNT; ic++) { + for (int i = 0, j = 0; i < in_len; i += src_species_len, j += dst_species_len) { + int part = parts[i % parts.length]; + var av = srcSpecies.fromArray(in, i); + Vector rv = switch(conv) { + case CONVERT -> av.convert(convOp, part); + case CONVERTSHAPE -> av.convertShape(convOp, destSpecies, part); + case CASTSHAPE -> av.castShape(destSpecies, part); + case REINTERPRETSHAPE -> throw new UnsupportedOperationException(); + }; + System.arraycopy(rv.toArray(), 0, actual, j, dst_species_len); } - copyPrimArrayToBoxedArray(boxed_res, j, Arrays.asList(((Vector)(rv)).toArray())); + } + + Assert.assertEquals(actual, expected); + } + + static void reinterpret_kernel(VectorSpecies srcSpecies, VectorSpecies dstSpecies, + Object in) { + int in_len = Array.getLength(in); + int out_len = (in_len / srcSpecies.length()) * dstSpecies.length(); + int src_vector_size = srcSpecies.vectorBitSize(); + int dst_vector_size = dstSpecies.vectorBitSize(); + int src_species_len = srcSpecies.length(); + int dst_species_len = dstSpecies.length(); + boolean is_contracting_conv = src_vector_size < dst_vector_size; + int m = Math.max(dst_vector_size, src_vector_size) / Math.min(dst_vector_size, src_vector_size); + + int[] parts = getPartsArray(m, is_contracting_conv); + + Object expected = Array.newInstance(dstSpecies.elementType(), out_len); + Object actual = Array.newInstance(dstSpecies.elementType(), out_len); + + BiConsumer putValue = putBufferValueFunction(srcSpecies.elementType()); + Function getValue = getBufferValueFunction(dstSpecies.elementType()); + + // Calculate expected result + for (int i = 0, j = 0; i < in_len; i += src_species_len, j += dst_species_len) { + int part = parts[i % parts.length]; + if (is_contracting_conv) { - contracting_conversion_scalar(boxed_a, boxed_ref, src_species_len, dst_species_len, i, j, part); + contracting_reinterpret_scalar(in, expected, + src_vector_size, dst_vector_size, + src_species_len, dst_species_len, + i, j, part, + putValue, getValue); } else { - expanding_conversion_scalar(boxed_a, boxed_ref, src_species_len, dst_species_len, i, j , part); + expanding_reinterpret_scalar(in, expected, + src_vector_size, dst_vector_size, + src_species_len, dst_species_len, + i, j, part, + putValue, getValue); + } + } + + for (int ic = 0; ic < INVOC_COUNT; ic++) { + for (int i = 0, j = 0; i < in_len; i += src_species_len, j += dst_species_len) { + int part = parts[i % parts.length]; + var av = srcSpecies.fromArray(in, i); + var rv = av.reinterpretShape(dstSpecies, part); + System.arraycopy(rv.toArray(), 0, actual, j, dst_species_len); } - } - } - assertResultsEquals(boxed_res, boxed_ref, dst_species_len); - } - - static void reinterpret_kernel(VectorSpecies SPECIES, VectorSpecies OSPECIES, - I[] boxed_a, O[] boxed_ref, O[] boxed_res, List unboxed_a, - int in_len) { - int src_vector_size = SPECIES.vectorBitSize(); - int dst_vector_size = OSPECIES.vectorBitSize(); - int src_vector_lane_cnt = SPECIES.length(); - int dst_vector_lane_cnt = OSPECIES.length(); - boolean is_contracting_conv = src_vector_size < dst_vector_size; - int m = Math.max(dst_vector_size,src_vector_size) / Math.min(dst_vector_size, src_vector_size); - - int [] parts = getPartsArray(m, is_contracting_conv); - for (int ic = 0; ic < INVOC_COUNT; ic++) { - for (int i = 0, j=0; i < in_len; i += src_vector_lane_cnt, j+= dst_vector_lane_cnt) { - int part = parts[i % parts.length]; - var av = Vector64ConversionTests.vectorFactory(unboxed_a, i, SPECIES); - F rv = (F)(av.reinterpretShape(OSPECIES, part)); - copyPrimArrayToBoxedArray(boxed_res, j, Arrays.asList(((Vector)(rv)).toArray())); - if (is_contracting_conv) { - contracting_reinterpret_scalar(boxed_a, boxed_ref, src_vector_size, dst_vector_size, - src_vector_lane_cnt, dst_vector_lane_cnt, i, j, part); - } else { - expanding_reinterpret_scalar(boxed_a, boxed_ref, src_vector_size, dst_vector_size, - src_vector_lane_cnt, dst_vector_lane_cnt, i, j, part); - } } - } - assertResultsEquals(boxed_res, boxed_ref, dst_vector_lane_cnt); + + Assert.assertEquals(actual, expected); } } diff --git a/test/jdk/jdk/incubator/vector/Vector128ConversionTests.java b/test/jdk/jdk/incubator/vector/Vector128ConversionTests.java index 9a140e5e4f5dc..85191da8466d6 100644 --- a/test/jdk/jdk/incubator/vector/Vector128ConversionTests.java +++ b/test/jdk/jdk/incubator/vector/Vector128ConversionTests.java @@ -20,14 +20,12 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -import jdk.incubator.vector.*; -import jdk.internal.vm.annotation.ForceInline; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; +import org.testng.annotations.DataProvider; import org.testng.annotations.Test; -import java.util.Arrays; -import java.util.List; -import java.nio.*; import java.util.function.IntFunction; /** @@ -35,7330 +33,45 @@ * @modules jdk.incubator.vector * @modules java.base/jdk.internal.vm.annotation * @run testng/othervm -XX:-TieredCompilation --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED - * Vector128ConversionTests + * Vector128ConversionTests */ @Test public class Vector128ConversionTests extends AbstractVectorConversionTest { - static final VectorSpecies ispec128 = IntVector.SPECIES_128; - static final VectorSpecies fspec128 = FloatVector.SPECIES_128; - static final VectorSpecies lspec128 = LongVector.SPECIES_128; - static final VectorSpecies dspec128 = DoubleVector.SPECIES_128; - static final VectorSpecies bspec128 = ByteVector.SPECIES_128; - static final VectorSpecies sspec128 = ShortVector.SPECIES_128; - - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2B_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2S_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2I_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2L_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2F_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2D_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(bspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_128_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_128_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_128_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_128_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_128_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(bspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2B_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2S_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2I_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2L_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2F_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2D_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(dspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_128_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_128_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_128_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_128_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_128_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(dspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2B_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2S_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2I_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2L_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2F_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2D_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(fspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_128_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_128_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_128_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_128_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_128_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(fspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2B_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2S_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2I_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2L_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2F_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2D_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(ispec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_128_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_128_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_128_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_128_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_128_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(ispec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2B_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2S_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2I_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2L_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2F_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2D_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(lspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_128_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_128_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_128_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_128_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_128_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(lspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2B_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2S_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2I_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2L_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2F_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2D_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); + static final VectorShape SHAPE = VectorShape.S_128_BIT; + @DataProvider + public Object[][] fixedShapeXfixedShape() { + return fixedShapeXFixedShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - conversion_kernel(sspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ByteVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - + @DataProvider + public Object[][] fixedShapeXShape() { + return fixedShapeXShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * ShortVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * IntVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * LongVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * FloatVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_128_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_64.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_128_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_128.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXfixedShape") + static void convert(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERT); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_128_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_256.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void convertShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_128_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_512.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void castShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CASTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_128_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec128.length()) * DoubleVector.SPECIES_MAX.length(); - Vector128ConversionTests. - reinterpret_kernel(sspec128, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void reinterpret(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + reinterpret_kernel(src, dst, a); } } diff --git a/test/jdk/jdk/incubator/vector/Vector256ConversionTests.java b/test/jdk/jdk/incubator/vector/Vector256ConversionTests.java index 64d8b67171104..ab73b469ae8d2 100644 --- a/test/jdk/jdk/incubator/vector/Vector256ConversionTests.java +++ b/test/jdk/jdk/incubator/vector/Vector256ConversionTests.java @@ -20,14 +20,12 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -import jdk.incubator.vector.*; -import jdk.internal.vm.annotation.ForceInline; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; +import org.testng.annotations.DataProvider; import org.testng.annotations.Test; -import java.util.Arrays; -import java.util.List; -import java.nio.*; import java.util.function.IntFunction; /** @@ -35,7330 +33,45 @@ * @modules jdk.incubator.vector * @modules java.base/jdk.internal.vm.annotation * @run testng/othervm -XX:-TieredCompilation --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED - * Vector256ConversionTests + * Vector256ConversionTests */ @Test public class Vector256ConversionTests extends AbstractVectorConversionTest { - static final VectorSpecies ispec256 = IntVector.SPECIES_256; - static final VectorSpecies fspec256 = FloatVector.SPECIES_256; - static final VectorSpecies lspec256 = LongVector.SPECIES_256; - static final VectorSpecies dspec256 = DoubleVector.SPECIES_256; - static final VectorSpecies bspec256 = ByteVector.SPECIES_256; - static final VectorSpecies sspec256 = ShortVector.SPECIES_256; - - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2B_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2S_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2I_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2L_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2F_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2D_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(bspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_256_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_256_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_256_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_256_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_256_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(bspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2B_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2S_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2I_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2L_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2F_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2D_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(dspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_256_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_256_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_256_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_256_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_256_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(dspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2B_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2S_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2I_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2L_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2F_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2D_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(fspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_256_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_256_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_256_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_256_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_256_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(fspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2B_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2S_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2I_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2L_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2F_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2D_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(ispec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_256_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_256_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_256_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_256_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_256_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(ispec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2B_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2S_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2I_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2L_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2F_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2D_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(lspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_256_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_256_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_256_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_256_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_256_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(lspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2B_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2S_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2I_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2L_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2F_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2D_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); + static final VectorShape SHAPE = VectorShape.S_256_BIT; + @DataProvider + public Object[][] fixedShapeXfixedShape() { + return fixedShapeXFixedShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - conversion_kernel(sspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ByteVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - + @DataProvider + public Object[][] fixedShapeXShape() { + return fixedShapeXShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * ShortVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * IntVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * LongVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * FloatVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_256_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_64.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_256_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_128.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXfixedShape") + static void convert(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERT); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_256_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_256.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void convertShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_256_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_512.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void castShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CASTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_256_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec256.length()) * DoubleVector.SPECIES_MAX.length(); - Vector256ConversionTests. - reinterpret_kernel(sspec256, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void reinterpret(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + reinterpret_kernel(src, dst, a); } } diff --git a/test/jdk/jdk/incubator/vector/Vector512ConversionTests.java b/test/jdk/jdk/incubator/vector/Vector512ConversionTests.java index 81ca06a942406..3f802712b4cc8 100644 --- a/test/jdk/jdk/incubator/vector/Vector512ConversionTests.java +++ b/test/jdk/jdk/incubator/vector/Vector512ConversionTests.java @@ -20,14 +20,12 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -import jdk.incubator.vector.*; -import jdk.internal.vm.annotation.ForceInline; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; +import org.testng.annotations.DataProvider; import org.testng.annotations.Test; -import java.util.Arrays; -import java.util.List; -import java.nio.*; import java.util.function.IntFunction; /** @@ -35,7330 +33,45 @@ * @modules jdk.incubator.vector * @modules java.base/jdk.internal.vm.annotation * @run testng/othervm -XX:-TieredCompilation --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED - * Vector512ConversionTests + * Vector512ConversionTests */ @Test public class Vector512ConversionTests extends AbstractVectorConversionTest { - static final VectorSpecies ispec512 = IntVector.SPECIES_512; - static final VectorSpecies fspec512 = FloatVector.SPECIES_512; - static final VectorSpecies lspec512 = LongVector.SPECIES_512; - static final VectorSpecies dspec512 = DoubleVector.SPECIES_512; - static final VectorSpecies bspec512 = ByteVector.SPECIES_512; - static final VectorSpecies sspec512 = ShortVector.SPECIES_512; - - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2B_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2S_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2I_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2L_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2F_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2D_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(bspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_512_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_512_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_512_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_512_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_512_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(bspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2B_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2S_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2I_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2L_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2F_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2D_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(dspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_512_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_512_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_512_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_512_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_512_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(dspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2B_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2S_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2I_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2L_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2F_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2D_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(fspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_512_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_512_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_512_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_512_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_512_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(fspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2B_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2S_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2I_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2L_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2F_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2D_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(ispec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_512_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_512_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_512_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_512_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_512_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(ispec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2B_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2S_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2I_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2L_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2F_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2D_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(lspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_512_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_512_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_512_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_512_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_512_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(lspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2B_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2S_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2I_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2L_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2F_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2D_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); + static final VectorShape SHAPE = VectorShape.S_512_BIT; + @DataProvider + public Object[][] fixedShapeXfixedShape() { + return fixedShapeXFixedShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - conversion_kernel(sspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ByteVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - + @DataProvider + public Object[][] fixedShapeXShape() { + return fixedShapeXShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * ShortVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * IntVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * LongVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * FloatVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_512_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_64.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_512_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_128.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXfixedShape") + static void convert(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERT); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_512_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_256.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void convertShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_512_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_512.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void castShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CASTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_512_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec512.length()) * DoubleVector.SPECIES_MAX.length(); - Vector512ConversionTests. - reinterpret_kernel(sspec512, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void reinterpret(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + reinterpret_kernel(src, dst, a); } } diff --git a/test/jdk/jdk/incubator/vector/Vector64ConversionTests.java b/test/jdk/jdk/incubator/vector/Vector64ConversionTests.java index 9580e6d7ce272..24b67ed245b29 100644 --- a/test/jdk/jdk/incubator/vector/Vector64ConversionTests.java +++ b/test/jdk/jdk/incubator/vector/Vector64ConversionTests.java @@ -20,14 +20,12 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -import jdk.incubator.vector.*; -import jdk.internal.vm.annotation.ForceInline; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; +import org.testng.annotations.DataProvider; import org.testng.annotations.Test; -import java.util.Arrays; -import java.util.List; -import java.nio.*; import java.util.function.IntFunction; @@ -53,7324 +51,39 @@ @Test public class Vector64ConversionTests extends AbstractVectorConversionTest { - static final VectorSpecies ispec64 = IntVector.SPECIES_64; - static final VectorSpecies fspec64 = FloatVector.SPECIES_64; - static final VectorSpecies lspec64 = LongVector.SPECIES_64; - static final VectorSpecies dspec64 = DoubleVector.SPECIES_64; - static final VectorSpecies bspec64 = ByteVector.SPECIES_64; - static final VectorSpecies sspec64 = ShortVector.SPECIES_64; - - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2B_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2S_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2I_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2L_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2F_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2D_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(bspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_64_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_64_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_64_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_64_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_64_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(bspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2B_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2S_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2I_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2L_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2F_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2D_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(dspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_64_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_64_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_64_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_64_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_64_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(dspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2B_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2S_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2I_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2L_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2F_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2D_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(fspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_64_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_64_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_64_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_64_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_64_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(fspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2B_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2S_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2I_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2L_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2F_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2D_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(ispec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_64_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_64_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_64_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_64_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_64_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(ispec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2B_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2S_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2I_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2L_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2F_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2D_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(lspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_64_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_64_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_64_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_64_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_64_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(lspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2B_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2S_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2I_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2L_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2F_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2D_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); + static final VectorShape SHAPE = VectorShape.S_64_BIT; + @DataProvider + public Object[][] fixedShapeXfixedShape() { + return fixedShapeXFixedShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - conversion_kernel(sspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ByteVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - + @DataProvider + public Object[][] fixedShapeXShape() { + return fixedShapeXShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * ShortVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * IntVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * LongVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * FloatVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_64_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_64.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_64_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_128.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXfixedShape") + static void convert(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERT); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_64_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_256.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void convertShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_64_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_512.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void castShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CASTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_64_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspec64.length()) * DoubleVector.SPECIES_MAX.length(); - Vector64ConversionTests. - reinterpret_kernel(sspec64, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void reinterpret(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + reinterpret_kernel(src, dst, a); } } diff --git a/test/jdk/jdk/incubator/vector/VectorMaxConversionTests.java b/test/jdk/jdk/incubator/vector/VectorMaxConversionTests.java index 38a479e2f9eae..747b9fc9768a9 100644 --- a/test/jdk/jdk/incubator/vector/VectorMaxConversionTests.java +++ b/test/jdk/jdk/incubator/vector/VectorMaxConversionTests.java @@ -20,14 +20,12 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -import jdk.incubator.vector.*; -import jdk.internal.vm.annotation.ForceInline; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; +import org.testng.annotations.DataProvider; import org.testng.annotations.Test; -import java.util.Arrays; -import java.util.List; -import java.nio.*; import java.util.function.IntFunction; /** @@ -35,7330 +33,45 @@ * @modules jdk.incubator.vector * @modules java.base/jdk.internal.vm.annotation * @run testng/othervm -XX:-TieredCompilation --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED - * VectorMaxConversionTests + * VectorMaxConversionTests */ @Test public class VectorMaxConversionTests extends AbstractVectorConversionTest { - static final VectorSpecies ispecMax = IntVector.SPECIES_MAX; - static final VectorSpecies fspecMax = FloatVector.SPECIES_MAX; - static final VectorSpecies lspecMax = LongVector.SPECIES_MAX; - static final VectorSpecies dspecMax = DoubleVector.SPECIES_MAX; - static final VectorSpecies bspecMax = ByteVector.SPECIES_MAX; - static final VectorSpecies sspecMax = ShortVector.SPECIES_MAX; - - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2B_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2S_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2I_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2L_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2F_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertB2D_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2B_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2S_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2I_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2L_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2F_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void convertShapeB2D_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2B_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), B2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2S_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.B2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2I_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.B2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2L_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.B2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2F_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.B2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void castShapeB2D_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(bspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.B2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2B_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2S_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2I_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2L_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2F_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_Max_To_64(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_Max_To_128(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_Max_To_256(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_Max_To_512(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "byteUnaryOpProvider") - static void reinterpretShapeB2D_Max_To_MAX(IntFunction fa) { - byte[] a = fa.apply(1024); - int olen = (a.length / bspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(bspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2B_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2S_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2I_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2L_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2F_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertD2D_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2B_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2S_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2I_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2L_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2F_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void convertShapeD2D_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2B_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.D2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2S_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.D2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2I_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.D2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2L_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.D2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2F_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.D2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void castShapeD2D_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(dspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), D2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2B_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2S_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2I_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2L_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2F_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_Max_To_64(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_Max_To_128(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_Max_To_256(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_Max_To_512(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "doubleUnaryOpProvider") - static void reinterpretShapeD2D_Max_To_MAX(IntFunction fa) { - double[] a = fa.apply(1024); - int olen = (a.length / dspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(dspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2B_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2S_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2I_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2L_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2F_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertF2D_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2B_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2S_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2I_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2L_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2F_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void convertShapeF2D_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2B_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.F2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2S_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.F2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2I_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.F2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2L_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.F2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2F_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), F2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void castShapeF2D_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(fspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.F2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2B_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2S_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2I_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2L_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2F_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_Max_To_64(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_Max_To_128(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_Max_To_256(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_Max_To_512(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "floatUnaryOpProvider") - static void reinterpretShapeF2D_Max_To_MAX(IntFunction fa) { - float[] a = fa.apply(1024); - int olen = (a.length / fspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(fspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2B_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2S_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2I_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2L_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2F_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertI2D_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2B_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2S_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2I_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2L_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2F_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void convertShapeI2D_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2B_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.I2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2S_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.I2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2I_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), I2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2L_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.I2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2F_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.I2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void castShapeI2D_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(ispecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.I2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2B_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2S_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2I_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2L_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2F_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_Max_To_64(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_Max_To_128(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_Max_To_256(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_Max_To_512(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "intUnaryOpProvider") - static void reinterpretShapeI2D_Max_To_MAX(IntFunction fa) { - int[] a = fa.apply(1024); - int olen = (a.length / ispecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(ispecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2B_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2S_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2I_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2L_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2F_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertL2D_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2B_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2S_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2I_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2L_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2F_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void convertShapeL2D_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2B_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.L2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2S_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), VectorOperators.L2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2I_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.L2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2L_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), L2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2F_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.L2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void castShapeL2D_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(lspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.L2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2B_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2S_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2I_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2L_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2F_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_Max_To_64(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_Max_To_128(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_Max_To_256(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_Max_To_512(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "longUnaryOpProvider") - static void reinterpretShapeL2D_Max_To_MAX(IntFunction fa) { - long[] a = fa.apply(1024); - int olen = (a.length / lspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(lspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2B_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2S_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2I_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2L_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2F_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertS2D_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERT, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2B_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2S_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2I_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2L_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2F_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void convertShapeS2D_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CONVERTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2B_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), VectorOperators.S2B, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2S_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), S2S, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); + static final VectorShape SHAPE = VectorShape.S_Max_BIT; + @DataProvider + public Object[][] fixedShapeXfixedShape() { + return fixedShapeXFixedShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2I_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), VectorOperators.S2I, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2L_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), VectorOperators.S2L, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2F_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), VectorOperators.S2F, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void castShapeS2D_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - conversion_kernel(sspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), VectorOperators.S2D, - ConvAPI.CASTSHAPE, a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ByteVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ByteVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ByteVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ByteVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2B_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ByteVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ByteVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Byte.class, olen), - getBoxedArray(Byte.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ShortVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - + @DataProvider + public Object[][] fixedShapeXShape() { + return fixedShapeXShapeSpeciesArgs(SHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ShortVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ShortVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ShortVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2S_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * ShortVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, ShortVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Short.class, olen), - getBoxedArray(Short.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, IntVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, IntVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, IntVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, IntVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2I_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * IntVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, IntVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Integer.class, olen), - getBoxedArray(Integer.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, LongVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, LongVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, LongVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, LongVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2L_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * LongVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, LongVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Long.class, olen), - getBoxedArray(Long.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, FloatVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, FloatVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, FloatVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, FloatVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2F_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * FloatVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, FloatVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Float.class, olen), - getBoxedArray(Float.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_Max_To_64(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_64.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, DoubleVector.SPECIES_64, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - - } - - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_Max_To_128(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_128.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, DoubleVector.SPECIES_128, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXfixedShape") + static void convert(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERT); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_Max_To_256(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_256.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, DoubleVector.SPECIES_256, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void convertShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CONVERTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_Max_To_512(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_512.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, DoubleVector.SPECIES_512, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void castShape(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + conversion_kernel(src, dst, a, ConvAPI.CASTSHAPE); } - @Test(dataProvider = "shortUnaryOpProvider") - static void reinterpretShapeS2D_Max_To_MAX(IntFunction fa) { - short[] a = fa.apply(1024); - int olen = (a.length / sspecMax.length()) * DoubleVector.SPECIES_MAX.length(); - VectorMaxConversionTests. - reinterpret_kernel(sspecMax, DoubleVector.SPECIES_MAX, getBoxedArray(a), - getBoxedArray(Double.class, olen), - getBoxedArray(Double.class, olen), - Arrays.asList(a), a.length); - + @Test(dataProvider = "fixedShapeXShape") + static void reinterpret(VectorSpecies src, VectorSpecies dst, IntFunction fa) { + Object a = fa.apply(1024); + reinterpret_kernel(src, dst, a); } }