1
2 @Test(dataProvider = "$type$CompareOpProvider")
3 static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb) {
4 $type$[] a = fa.apply(SPECIES.length());
5 $type$[] b = fb.apply(SPECIES.length());
6
7 for (int ic = 0; ic < INVOC_COUNT; ic++) {
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 Vector.Mask<$Wideboxtype$> mv = av.[[TEST]](bv);
12
13 // Check results as part of computation.
14 for (int j = 0; j < SPECIES.length(); j++) {
15 Assert.assertEquals(mv.getElement(j), a[i + j] [[TEST_OP]] b[i + j]);
16 }
17 }
18 }
19 }
20
|
1
2 @Test(dataProvider = "$type$CompareOpProvider")
3 static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb) {
4 $type$[] a = fa.apply(SPECIES.length());
5 $type$[] b = fb.apply(SPECIES.length());
6
7 for (int ic = 0; ic < INVOC_COUNT; ic++) {
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 VectorMask<$Wideboxtype$> mv = av.[[TEST]](bv);
12
13 // Check results as part of computation.
14 for (int j = 0; j < SPECIES.length(); j++) {
15 Assert.assertEquals(mv.getElement(j), a[i + j] [[TEST_OP]] b[i + j]);
16 }
17 }
18 }
19 }
20
|