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()); 22 $type$[] r = fr.apply(SPECIES.length()); 23 24 for (int i = 0; i < a.length; i += SPECIES.length()) { 25 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i); 26 $abstractvectortype$ cv = $abstractvectortype$.fromArray(SPECIES, c, i); 27 av.lanewise(VectorOperators.[[TEST]], b[i], cv).intoArray(r, i); 28 } 29 assertAltBroadcastArraysEquals(r, a, b, c, $vectorteststype$::[[TEST]]); 30 }