1 
 2     @Test(dataProvider = "$type$UnaryOpMaskProvider")
 3     static void compress$vectorteststype$(IntFunction<$type$[]> fa,
 4                                                 IntFunction<boolean[]> fm) {
 5         $type$[] a = fa.apply(SPECIES.length());
 6         $type$[] r = fr.apply(SPECIES.length());
 7         boolean[] mask = fm.apply(SPECIES.length());
 8         VectorMask<$Wideboxtype$> vmask = VectorMask.fromArray(SPECIES, mask, 0);
 9 
10         for (int ic = 0; ic < INVOC_COUNT; ic++) {
11             for (int i = 0; i < a.length; i += SPECIES.length()) {
12                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
13                 av.compress(vmask).intoArray(r, i);
14             }
15         }
16 
17         assertcompressArraysEquals(r, a, mask, SPECIES.length());
18     }
19 
20     @Test(dataProvider = "$type$UnaryOpMaskProvider")
21     static void expand$vectorteststype$(IntFunction<$type$[]> fa,
22                                                 IntFunction<boolean[]> fm) {
23         $type$[] a = fa.apply(SPECIES.length());
24         $type$[] r = fr.apply(SPECIES.length());
25         boolean[] mask = fm.apply(SPECIES.length());
26         VectorMask<$Wideboxtype$> vmask = VectorMask.fromArray(SPECIES, mask, 0);
27 
28         for (int ic = 0; ic < INVOC_COUNT; ic++) {
29             for (int i = 0; i < a.length; i += SPECIES.length()) {
30                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
31                 av.expand(vmask).intoArray(r, i);
32             }
33         }
34 
35         assertexpandArraysEquals(r, a, mask, SPECIES.length());
36     }