Skip to content

Commit

Permalink
Refresh template based tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin-bhateja committed Aug 20, 2024
1 parent 965147b commit bfddc7c
Show file tree
Hide file tree
Showing 30 changed files with 240 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ public void zero(Blackhole bh) {
public void sliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1801,7 +1801,7 @@ public void sliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1821,7 +1821,7 @@ public void sliceMasked(Blackhole bh) {
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);

byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1837,7 +1837,7 @@ public void sliceMasked(Blackhole bh) {
public void unsliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1853,8 +1853,8 @@ public void unsliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1873,8 +1873,8 @@ public void unsliceMasked(Blackhole bh) {
boolean[] mask = fm.apply(SPECIES.length());
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ public void zero(Blackhole bh) {
public void sliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1801,7 +1801,7 @@ public void sliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1821,7 +1821,7 @@ public void sliceMasked(Blackhole bh) {
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);

byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1837,7 +1837,7 @@ public void sliceMasked(Blackhole bh) {
public void unsliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1853,8 +1853,8 @@ public void unsliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1873,8 +1873,8 @@ public void unsliceMasked(Blackhole bh) {
boolean[] mask = fm.apply(SPECIES.length());
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ public void zero(Blackhole bh) {
public void sliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1801,7 +1801,7 @@ public void sliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1821,7 +1821,7 @@ public void sliceMasked(Blackhole bh) {
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);

byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1837,7 +1837,7 @@ public void sliceMasked(Blackhole bh) {
public void unsliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1853,8 +1853,8 @@ public void unsliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1873,8 +1873,8 @@ public void unsliceMasked(Blackhole bh) {
boolean[] mask = fm.apply(SPECIES.length());
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ public void zero(Blackhole bh) {
public void sliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1801,7 +1801,7 @@ public void sliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1821,7 +1821,7 @@ public void sliceMasked(Blackhole bh) {
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);

byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1837,7 +1837,7 @@ public void sliceMasked(Blackhole bh) {
public void unsliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1853,8 +1853,8 @@ public void unsliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1873,8 +1873,8 @@ public void unsliceMasked(Blackhole bh) {
boolean[] mask = fm.apply(SPECIES.length());
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ public void zero(Blackhole bh) {
public void sliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1801,7 +1801,7 @@ public void sliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1821,7 +1821,7 @@ public void sliceMasked(Blackhole bh) {
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);

byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1837,7 +1837,7 @@ public void sliceMasked(Blackhole bh) {
public void unsliceUnary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1853,8 +1853,8 @@ public void unsliceBinary(Blackhole bh) {
byte[] a = fa.apply(SPECIES.length());
byte[] b = fb.apply(SPECIES.length());
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand All @@ -1873,8 +1873,8 @@ public void unsliceMasked(Blackhole bh) {
boolean[] mask = fm.apply(SPECIES.length());
VectorMask<Byte> vmask = VectorMask.fromArray(SPECIES, mask, 0);
byte[] r = new byte[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
ByteVector av = ByteVector.fromArray(SPECIES, a, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ public void zero(Blackhole bh) {
public void sliceUnary(Blackhole bh) {
double[] a = fa.apply(SPECIES.length());
double[] r = new double[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
Expand All @@ -979,7 +979,7 @@ public void sliceBinary(Blackhole bh) {
double[] a = fa.apply(SPECIES.length());
double[] b = fb.apply(SPECIES.length());
double[] r = new double[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
Expand All @@ -999,7 +999,7 @@ public void sliceMasked(Blackhole bh) {
VectorMask<Double> vmask = VectorMask.fromArray(SPECIES, mask, 0);

double[] r = new double[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
Expand All @@ -1015,7 +1015,7 @@ public void sliceMasked(Blackhole bh) {
public void unsliceUnary(Blackhole bh) {
double[] a = fa.apply(SPECIES.length());
double[] r = new double[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int origin = RAND.nextInt(SPECIES.length());
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
Expand All @@ -1031,8 +1031,8 @@ public void unsliceBinary(Blackhole bh) {
double[] a = fa.apply(SPECIES.length());
double[] b = fb.apply(SPECIES.length());
double[] r = new double[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
Expand All @@ -1051,8 +1051,8 @@ public void unsliceMasked(Blackhole bh) {
boolean[] mask = fm.apply(SPECIES.length());
VectorMask<Double> vmask = VectorMask.fromArray(SPECIES, mask, 0);
double[] r = new double[a.length];
int origin = (new java.util.Random()).nextInt(SPECIES.length());
int part = (new java.util.Random()).nextInt(2);
int origin = RAND.nextInt(SPECIES.length());
int part = RAND.nextInt(2);
for (int ic = 0; ic < INVOC_COUNT; ic++) {
for (int i = 0; i < a.length; i += SPECIES.length()) {
DoubleVector av = DoubleVector.fromArray(SPECIES, a, i);
Expand Down
Loading

0 comments on commit bfddc7c

Please sign in to comment.