< prev index next >

test/jdk/jdk/incubator/vector/templates/Kernel-Shift-Masked-op.template

Print this page
rev 54658 : refactored mask and shuffle creation methods, moved classes to top-level

*** 1,10 **** $type$[] a = fa.apply(SPECIES.length()); $type$[] b = fb.apply(SPECIES.length()); $type$[] r = fr.apply(SPECIES.length()); boolean[] mask = fm.apply(SPECIES.length()); ! Vector.Mask<$Wideboxtype$> vmask = $abstractvectortype$.maskFromValues(SPECIES, mask); for (int ic = 0; ic < INVOC_COUNT; ic++) { for (int i = 0; i < a.length; i += SPECIES.length()) { $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i); av.[[TEST]]((int)b[i], vmask).intoArray(r, i); --- 1,10 ---- $type$[] a = fa.apply(SPECIES.length()); $type$[] b = fb.apply(SPECIES.length()); $type$[] r = fr.apply(SPECIES.length()); boolean[] mask = fm.apply(SPECIES.length()); ! VectorMask<$Wideboxtype$> vmask = VectorMask.fromValues(SPECIES, mask); for (int ic = 0; ic < INVOC_COUNT; ic++) { for (int i = 0; i < a.length; i += SPECIES.length()) { $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i); av.[[TEST]]((int)b[i], vmask).intoArray(r, i);
< prev index next >