On 6/19/19 1:03 PM, Stefan Brankovic wrote: > Optimize Altivec instruction vclzw (Vector Count Leading Zeros Word). > This instruction counts the number of leading zeros of each word element > in source register and places result in the appropriate word element of > destination register. > > Counting is to be performed in four iterations of for loop(one for each > word elemnt of source register vB). Every iteration consists of loading > appropriate word element from source register, counting leading zeros > with tcg_gen_clzi_i32, and saving the result in appropriate word element > of destination register. > > Signed-off-by: Stefan Brankovic <stefan.branko...@rt-rk.com> > --- > target/ppc/helper.h | 1 - > target/ppc/int_helper.c | 3 --- > target/ppc/translate/vmx-impl.inc.c | 28 +++++++++++++++++++++++++++- > 3 files changed, 27 insertions(+), 5 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~