19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 import java.lang.foreign.MemorySegment;
24 import jdk.incubator.vector.*;
25 import jdk.internal.vm.annotation.ForceInline;
26 import org.testng.Assert;
27 import org.testng.annotations.Test;
28 import org.testng.annotations.DataProvider;
29
30 import java.nio.ByteOrder;
31 import java.util.Arrays;
32 import java.util.List;
33 import java.util.function.IntFunction;
34 import jdk.incubator.vector.VectorShape;
35 import jdk.incubator.vector.VectorSpecies;
36
37 /**
38 * @test
39 * @enablePreview
40 * @modules jdk.incubator.vector
41 * @modules java.base/jdk.internal.vm.annotation
42 * @run testng/othervm/timeout=240 --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED
43 * -XX:-TieredCompilation VectorReshapeTests
44 */
45
46 @Test
47 public class VectorReshapeTests {
48 static final int INVOC_COUNT = Integer.getInteger("jdk.incubator.vector.test.loop-iterations", 100);
49 static final int NUM_ITER = 200 * INVOC_COUNT;
50
51 static final VectorShape S_Max_BIT = getMaxBit();
52
53 static final VectorSpecies<Integer> ispec64 = IntVector.SPECIES_64;
54 static final VectorSpecies<Float> fspec64 = FloatVector.SPECIES_64;
55 static final VectorSpecies<Long> lspec64 = LongVector.SPECIES_64;
56 static final VectorSpecies<Double> dspec64 = DoubleVector.SPECIES_64;
57 static final VectorSpecies<Byte> bspec64 = ByteVector.SPECIES_64;
58 static final VectorSpecies<Short> sspec64 = ShortVector.SPECIES_64;
59
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 import java.lang.foreign.MemorySegment;
24 import jdk.incubator.vector.*;
25 import jdk.internal.vm.annotation.ForceInline;
26 import org.testng.Assert;
27 import org.testng.annotations.Test;
28 import org.testng.annotations.DataProvider;
29
30 import java.nio.ByteOrder;
31 import java.util.Arrays;
32 import java.util.List;
33 import java.util.function.IntFunction;
34 import jdk.incubator.vector.VectorShape;
35 import jdk.incubator.vector.VectorSpecies;
36
37 /**
38 * @test
39 * @modules jdk.incubator.vector
40 * @modules java.base/jdk.internal.vm.annotation
41 * @run testng/othervm/timeout=240 --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED
42 * -XX:-TieredCompilation VectorReshapeTests
43 */
44
45 @Test
46 public class VectorReshapeTests {
47 static final int INVOC_COUNT = Integer.getInteger("jdk.incubator.vector.test.loop-iterations", 100);
48 static final int NUM_ITER = 200 * INVOC_COUNT;
49
50 static final VectorShape S_Max_BIT = getMaxBit();
51
52 static final VectorSpecies<Integer> ispec64 = IntVector.SPECIES_64;
53 static final VectorSpecies<Float> fspec64 = FloatVector.SPECIES_64;
54 static final VectorSpecies<Long> lspec64 = LongVector.SPECIES_64;
55 static final VectorSpecies<Double> dspec64 = DoubleVector.SPECIES_64;
56 static final VectorSpecies<Byte> bspec64 = ByteVector.SPECIES_64;
57 static final VectorSpecies<Short> sspec64 = ShortVector.SPECIES_64;
58
|