1 @Test(dataProvider = "$type$TernaryOpProvider")
2 static void [[TEST]]$vectorteststype$BroadcastSmokeTest(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb, IntFunction<$type$[]> fc) {
3 $type$[] a = fa.apply(SPECIES.length());
4 $type$[] b = fb.apply(SPECIES.length());
5 $type$[] c = fc.apply(SPECIES.length());
6 $type$[] r = fr.apply(SPECIES.length());
7
8 for (int i = 0; i < a.length; i += SPECIES.length()) {
9 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
10 $abstractvectortype$ bv = $abstractvectortype$.fromArray(SPECIES, b, i);
11 av.lanewise(VectorOperators.[[TEST]], bv, c[i]).intoArray(r, i);
12 }
13 assertBroadcastArraysEquals(r, a, b, c, $vectorteststype$::[[TEST]]);
14 }
15
16 @Test(dataProvider = "$type$TernaryOpProvider")
17 static void [[TEST]]$vectorteststype$AltBroadcastSmokeTest(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb, IntFunction<$type$[]> fc) {
18 $type$[] a = fa.apply(SPECIES.length());
19 $type$[] b = fb.apply(SPECIES.length());
20 $type$[] c = fc.apply(SPECIES.length());
|
1
2 @Test(dataProvider = "$type$TernaryOpProvider")
3 static void [[TEST]]$vectorteststype$BroadcastSmokeTest(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb, IntFunction<$type$[]> fc) {
4 $type$[] a = fa.apply(SPECIES.length());
5 $type$[] b = fb.apply(SPECIES.length());
6 $type$[] c = fc.apply(SPECIES.length());
7 $type$[] r = fr.apply(SPECIES.length());
8
9 for (int i = 0; i < a.length; i += SPECIES.length()) {
10 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
11 $abstractvectortype$ bv = $abstractvectortype$.fromArray(SPECIES, b, i);
12 av.lanewise(VectorOperators.[[TEST]], bv, c[i]).intoArray(r, i);
13 }
14 assertBroadcastArraysEquals(r, a, b, c, $vectorteststype$::[[TEST]]);
15 }
16
17 @Test(dataProvider = "$type$TernaryOpProvider")
18 static void [[TEST]]$vectorteststype$AltBroadcastSmokeTest(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb, IntFunction<$type$[]> fc) {
19 $type$[] a = fa.apply(SPECIES.length());
20 $type$[] b = fb.apply(SPECIES.length());
21 $type$[] c = fc.apply(SPECIES.length());
|